Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
make your javascript handle unicode codepoints more correctly
branch: master

VERSION 0.0.4

latest commit da5eb68417
Dan Kogai authored
Failed to load latest commit information.
test .codePointsOf()
.gitignore Initial commit
.travis.yml Dropped Node 0.6
README.md Update README.md
codepoints.js VERSION 0.0.4
codepoints.min.js VERSION 0.0.3
package.json VERSION 0.0.4

README.md

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
'𠮷野家'.uCharAt(0);                      // 𠮷
'𠮷野家'.toArrayOfUChars();               // ['𠮷','野','家']
'𠮷野家'.replace(RegExp.RE_UCHARS, '!');  // '!!!'
Something went wrong with that request. Please try again.