0.0.4 • Published 11 years ago

js-codepoints v0.0.4

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

build status

codepoints.js

make your javascript handle unicode codepoints more correctly

SYNOPSIS

'𠮷野家'.length;                        // 4 // unfortunately
'𠮷野家'.codepoints;                    // 3 // naturally
String.fromCodePoint(0x20BB7);          // '𠮷'
'𠮷野家'.codePointAt(0);                // 0x20BB7
'𠮷野家'.toArrayOfUChar();              // ['𠮷','野','家']
'𠮷野家'.replace(RegExp.RE_UCHAR, '.'); // '...'
0.0.4

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago