ShenNong/packages/字体精简工具/node_modules/code-point-at
2024-06-21 18:44:06 +08:00
..
index.js 神农首次提交 2024-06-21 18:44:06 +08:00
license 神农首次提交 2024-06-21 18:44:06 +08:00
package.json 神农首次提交 2024-06-21 18:44:06 +08:00
readme.md 神农首次提交 2024-06-21 18:44:06 +08:00

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