Skip to content

fabiospampinato/string-from-charcodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String From CharCodes

An alternative to String.fromCharCode that doesn't throw with many arguments, while still remaining fast.

This should be about the fastest way to construct a string from charcodes.

Install

npm install --save string-from-charcodes

Usage

import fromCharCodes from 'string-from-charcodes';

const charCodes = [72, 101, 108, 108, 111, 44,  32,  87, 111, 114, 108, 100,  33];
const string = fromCharCodes ( charCodes );
console.log ( string ); // => 'Hello, World!'

License

MIT © Fabio Spampinato

About

An alternative to String.fromCharCode that doesn't throw with many arguments, while still remaining fast.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published