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

uc.micro

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uc.micro

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

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

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

FAQs

Package last updated on 24 Jun 2016

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