string-from-charcodes
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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

Package Sidebar

Install

npm i string-from-charcodes

Weekly Downloads

23

Version

2.0.0

License

none

Unpacked Size

5.18 kB

Total Files

12

Last publish

Collaborators

  • fabiospampinato