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

regenerate-unicode-properties

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regenerate-unicode-properties

Regenerate sets for Unicode properties and values.

  • 8.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is regenerate-unicode-properties?

The regenerate-unicode-properties package is a tool for generating JavaScript regular expressions based on Unicode properties. It is used to create sets of Unicode symbols that match certain criteria, such as belonging to a particular category, script, or block. This can be useful for text processing tasks that require matching characters with specific Unicode attributes.

What are regenerate-unicode-properties's main functionalities?

Generating regex sets for Unicode categories

This feature allows you to generate regular expressions that match any character from a specific Unicode category, such as letters (category 'L').

const regenerate = require('regenerate-unicode-properties');
const regex = regenerate().addCategory('L').toRegExp();
// regex will match any Unicode letter

Generating regex sets for Unicode scripts

This feature enables the creation of regular expressions that match characters from a specific Unicode script, such as Hiragana.

const regenerate = require('regenerate-unicode-properties');
const regex = regenerate().addScript('Hiragana').toRegExp();
// regex will match any character in the Hiragana script

Generating regex sets for Unicode blocks

With this feature, you can generate regular expressions that match characters within a specific Unicode block, like the Basic Latin block.

const regenerate = require('regenerate-unicode-properties');
const regex = regenerate().addBlock('Basic_Latin').toRegExp();
// regex will match any character in the Basic Latin block

Other packages similar to regenerate-unicode-properties

Keywords

FAQs

Package last updated on 13 May 2019

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