Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unicode-match-property-ecmascript

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unicode-match-property-ecmascript

Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21M
decreased by-1.69%
Maintainers
2
Weekly downloads
 
Created

What is unicode-match-property-ecmascript?

The unicode-match-property-ecmascript npm package is used to match Unicode property escapes in ECMAScript regular expressions. It provides functionality to check if a given property and value are valid according to the ECMAScript specification and to canonicalize property and value aliases.

What are unicode-match-property-ecmascript's main functionalities?

Matching Unicode property escapes

This feature allows you to match Unicode property escapes by providing the alias of the property. It returns the canonical property name.

const matchProperty = require('unicode-match-property-ecmascript');

const property = matchProperty('sc');
// 'sc' is the alias for the 'Script' property
console.log(property); // 'Script'

Canonicalizing property names

This feature is used to canonicalize property names by providing an alias and getting back the canonical form of the property name.

const matchProperty = require('unicode-match-property-ecmascript');

const canonicalPropertyName = matchProperty('scx');
// 'scx' is the alias for the 'Script_Extensions' property
console.log(canonicalPropertyName); // 'Script_Extensions'

Other packages similar to unicode-match-property-ecmascript

Keywords

FAQs

Package last updated on 14 Sep 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc