🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

code-point-at

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-point-at

ES2015 `String#codePointAt()` ponyfill

1.1.0
Source
npm
Version published
Weekly downloads
7.9M
-14.03%
Maintainers
1
Weekly downloads
 
Created

What is code-point-at?

The 'code-point-at' npm package provides functionality to retrieve a Unicode code point from a string at a given position. This is particularly useful for handling Unicode characters that are represented by two JavaScript characters (surrogate pairs).

What are code-point-at's main functionalities?

Get code point at specific position

This feature allows you to retrieve the Unicode code point of a character at a specified position in a string. It is especially useful for strings containing characters that may be represented by surrogate pairs in JavaScript.

const codePointAt = require('code-point-at');
let str = '𠮷野家';
let codePoint = codePointAt(str, 0);
console.log(codePoint); // 134071

Other packages similar to code-point-at

Keywords

es2015

FAQs

Package last updated on 03 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts