Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sindresorhus/code-point-at

ES2015 `String#codePointAt()` ponyfill
https://github.com/sindresorhus/code-point-at

Last synced: 3 months ago
JSON representation

ES2015 `String#codePointAt()` ponyfill

Awesome Lists containing this project

README

        

# code-point-at

> ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com)

## Install

```
$ npm install --save code-point-at
```

## Usage

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

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

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

## API

### codePointAt(input, [position])

---



Get professional support for this package with a Tidelift subscription




Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.