huituanxueqian 7740728225 commit 1 year ago
..
index.js 7740728225 commit 1 year ago
license 7740728225 commit 1 year ago
package.json 7740728225 commit 1 year ago
readme.md 7740728225 commit 1 year ago

readme.md

code-point-at Build Status

ES2015 String#codePointAt() ponyfill

Install

$ npm install --save code-point-at

Usage

var codePointAt = require('code-point-at');

codePointAt('🐴');
//=> 128052

codePointAt('abc', 2);
//=> 99

API

codePointAt(input, [position])

License

MIT © Sindre Sorhus