Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

code-point-at

sindresorhus37.3mMITdeprecated2.0.0

Deprecated in favor of String#codePointAt().

ES2015 String#codePointAt() ponyfill

es2015, ponyfill, polyfill, shim, string, str, code, point, at, codepoint, unicode

readme

Deprecated. Just use String#codePointAt().


code-point-at

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])