# code-point-at

> ES2015 `String#codePointAt()` ponyfill

Latest version **2.0.0** (published 2021-10-13) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install code-point-at
pnpm add code-point-at
yarn add code-point-at
bun add code-point-at
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-10-13 |
| First published | 2015-07-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | es2015, ponyfill, polyfill, shim, string, str, code, point, at, codepoint, unicode |

## Links

- npm: https://www.npmjs.com/package/code-point-at
- Repository: https://github.com/sindresorhus/code-point-at
- Homepage: https://github.com/sindresorhus/code-point-at#readme
- Issues: https://github.com/sindresorhus/code-point-at/issues
- npm.io page: https://npm.io/package/code-point-at

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-10-13
- 1.1.0 — 2016-11-03
- 1.0.1 — 2016-09-30
- 1.0.0 — 2015-07-16

## README

Deprecated. Just use `String#codePointAt()`.

---

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

---
_Source: https://npm.io/package/code-point-at · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
