
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@http404/unicode-range
Advanced tools
Unicode parsing made simple, safe, and supercharged! 🚀
@http404/unicode-range is an ECMAScript Module (ESM) JavaScript library designed for parsing, validating, and stringifying CSS unicode-range values. It supports unicode-range strings as specified in the CSS Fonts specification. This package is based on @japont/unicode-range and provides enhanced performance and additional features.
See the added features in our docs.
npm i @http404/unicode-range
[!NOTE] This package is ESM-only and cannot be imported using require() from CommonJS. For more information, see this guide
import UnicodeRange from '@http404/unicode-range';
// Parse ( e.g. U+30-39 -> [30, 31, ..., 39] )
const Hiragana = UnicodeRange
.parse('U+3041-3096, U+3099-309F')
.map(cp => String.fromCodePoint(cp));
console.log(Hiragana);
// Stringify ( e.g. [30, 31, ..., 39] -> U+30-39 )
const DigitCodePoints = '0123456789'.split('').map(c => c.codePointAt(0));
const DigitUnicodeRange = UnicodeRange.stringify(DigitCodePoints);
console.log(DigitUnicodeRange);
Yes.
MIT License
FAQs
Unicode-range parser/builder
The npm package @http404/unicode-range receives a total of 1 weekly downloads. As such, @http404/unicode-range popularity was classified as not popular.
We found that @http404/unicode-range demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.