Socket
Socket
Sign inDemoInstall

uc.micro

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uc.micro

Micro subset of unicode data files for markdown-it projects.


Version published
Weekly downloads
6.7M
increased by1.74%
Maintainers
1
Install size
12.9 kB
Created
Weekly downloads
 

Package description

What is uc.micro?

The uc.micro package is a collection of micro-modules for handling Unicode characters in various ways. It's particularly useful for tasks involving character categorization, normalization, and manipulation in a Unicode-aware manner. This package is designed to be lightweight and efficient, making it ideal for applications where performance and minimal footprint are critical.

What are uc.micro's main functionalities?

Categories of Unicode characters

This feature allows you to access various categories of Unicode characters, such as lowercase letters, uppercase letters, numbers, etc. The provided code sample demonstrates how to access the array of lowercase letter Unicode points.

"use strict";
const categories = require('uc.micro/categories');
console.log(categories.Ll); // Logs an array of lowercase letter Unicode points

Properties of Unicode characters

This feature enables access to specific properties of Unicode characters, such as alphabetic, numeric, and so on. The code sample shows how to retrieve an array of Unicode points that are considered alphabetic.

"use strict";
const properties = require('uc.micro/properties');
console.log(properties.Alphabetic); // Logs an array of Unicode points that have the alphabetic property

Normalization of Unicode characters

This feature provides functionality for normalizing Unicode characters according to different normalization forms. The code sample demonstrates normalizing a character to its NFD (Normalization Form Decomposed) representation.

"use strict";
const normalize = require('uc.micro/normalize');
console.log(normalize('NFD', 'á')); // Logs the NFD (Normalization Form Decomposed) version of 'á'

Other packages similar to uc.micro

Readme

Source

uc.micro

CI NPM version

Micro subset of unicode data files for markdown-it projects.

Content of this repo is autogenerated from unicode-<version> package, maintained by Mathias Bynens.

That's just a proxy to reduce dependencies/install size.

This package content is ONLY for markdown-it projects needs. Don't ask to extend it!

FAQs

Last updated on 02 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc