Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 23, 2024 via pnpm

char-regex 2.0.1

A regex to match any full character, considering weird character ranges.
Package summary
Share
0
issues
1
license
1
MIT
Package created
31 Jan 2020
Version published
15 Feb 2022
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
char-regex@2.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of char-regex 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does char-regex do?

The "char-regex" is a JavaScript npm package that provides a regex to match any full character, even considering unusual character ranges. The special feature of this package is that it has been thoroughly tested on every single emoji and unicode character, ensuring reliability. The concept is based on the Lodash implementation.

How do you use char-regex?

Using char-regex is a breeze. Installation is done via npm with npm install char-regex. Here is an example of how to use it in your JavaScript code:

import charRegex from 'char-regex';

'β€οΈπŸ‘ŠπŸ½'.match(/./);
// This will output ['', '', '', '', '', '', '']

'β€οΈπŸ‘ŠπŸ½'.match(charRegex());
// This will output ['❀️', 'πŸ‘ŠπŸ½']

As demonstrated above, using the match method with char-regex correctly identifies the full characters, even emojis, in the string.

Where are the char-regex docs?

For the complete package documentation or any additional information for char-regex, simply refer to its GitHub page here. Here you will find more detailed information about its usage application, related packages, and any potential updates.