doc/node_modules/code-point-at
2021-05-05 15:50:12 +02:00
..
index.js Move content to repo root 2021-05-05 15:50:12 +02:00
license Move content to repo root 2021-05-05 15:50:12 +02:00
package.json Move content to repo root 2021-05-05 15:50:12 +02:00
readme.md Move content to repo root 2021-05-05 15:50:12 +02: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