You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 617B

1234567891011121314151617181920212223242526272829303132
  1. # code-point-at [![Build Status](https://travis-ci.org/sindresorhus/code-point-at.svg?branch=master)](https://travis-ci.org/sindresorhus/code-point-at)
  2. > ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com)
  3. ## Install
  4. ```
  5. $ npm install --save code-point-at
  6. ```
  7. ## Usage
  8. ```js
  9. var codePointAt = require('code-point-at');
  10. codePointAt('🐴');
  11. //=> 128052
  12. codePointAt('abc', 2);
  13. //=> 99
  14. ```
  15. ## API
  16. ### codePointAt(input, [position])
  17. ## License
  18. MIT © [Sindre Sorhus](https://sindresorhus.com)