New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fancy-ids

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fancy-ids

Generate fancy human readable ids

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Fancy-ids

Generates human-readable strings composed of english words, based on numbers. The calculation is fully reversible, so for example:

> f.fancyId(900000)
'Is-Year-Automatically-Different'
> f.fancyId('Is-Year-Automatically-Different')
900000

In other words, it is guaranteed that fancyId(fancyId(n)) === n.

The intended use-case is to use these on the user-facing end in for example urls where you have a database id as part of your url. So https://mysite.com/items/Is-Recipe-Primarily-Embarrassed instead of https://mysite.com/items/12387632.

FAQs

Package last updated on 17 Jan 2018

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