Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/code-point-at
ES2015 `String#codePointAt()` ponyfill
https://github.com/sindresorhus/code-point-at
Last synced: about 1 month ago
JSON representation
ES2015 `String#codePointAt()` ponyfill
- Host: GitHub
- URL: https://github.com/sindresorhus/code-point-at
- Owner: sindresorhus
- License: mit
- Archived: true
- Created: 2015-07-16T21:45:05.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-01-23T08:47:41.000Z (almost 4 years ago)
- Last Synced: 2024-03-27T04:01:05.976Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 22
- Watchers: 7
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- awesome-typography - code-point-at - ES2015 String#codePointAt() ponyfill. (JavaScript)
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('🐴');
//=> 128052codePointAt('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.