Generate unique slugs, usernames, numbers and more. If you need a unique string that looks like this `hyperspace-4812` or `blue-whimsical-summer` using an intuitive api with zero dependencies.
Generate a unique character string suitible for use in files and URLs.
Generate a slug just like GitHub does for markdown headings.
Parse and stringify space separated tokens
slugifies even utf-8 chars!
rehype plugin to add `id` attributes to headings
micromark factory to parse markdown space (found in lots of places)
Collapse white space
An Expo plugin to configure iOS color space
Light multi-platform disk space checker without third party for Node.js
Slug generator with less than 1 KB and no dependencies, RFC 3986 compliant
Convert a string to slug case.
JSON without touching any globals
Collection of color space conversions
TypeScript definitions for slug
Node.js module to generate URL slugs. Another one? This one cares about i18n and transliterates non-Latin scripts to conform to the RFC3986 standard. Mostly API-compatible with similar modules.
Deterministic and safely JSON.stringify to quickly serialize JavaScript objects
Spacetrim is trimming string from all 4 sides.
hast utility for `querySelector`, `querySelectorAll`, and `matches`
Convert a string to space case.
Editor friendly slug fields for your Sanity.io studio
Info on the properties and attributes of the web platform
Command line interface for mx-space (mx-core) — auth, content, configuration
Safely remove repeating whitespace from HTML text.
An efficient solution to use when it is undesirable to expose internal database ids, IdShuffler converts integers like 123 into strings like 'q34nr1', and vice-versa, using a very lightweight integer scrambling algorithm plus 'Crockford 32' encoding. It is built as a native C extension and so is very fast. The algorithm takes a string key as a seed, so you can use different keys for different id spaces and thus obtain different slugs for the same initial integer. This is not a security solution and I am not a cryptographer; it should be assumed a determined individual can unshuffle the ids without knowing the key used to generate them. Also note these are 30-bit ids, so the library can only represent values up to approximately 1 billion (1,073,741,823). This gem is still under development in so far as I have not written tests or documentation for it.
Contentful API wrapper library exposing an ActiveRecord-like interface