Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
char-to-string
Convert a character or character code to string
number-string
Functions to format number to string
json-parse-bigint
convert all the big integers to string in JSON before JSON.parse
to-regex-range
Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.
kind-of
Get the native type of a value.
simple-number-formatter
Format number to string by pattern
has-value
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
has-values
Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
is-number
Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.
strnum
Parse String to Number based on configuration
es-to-primitive
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
natural-orderby
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
is-primitive
Returns `true` if the value is a primitive.
number-to-bn
A simple method that will convert numbers, hex, BN or bignumber.js object into a BN.js object.
pretty-ms
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
parse-unit
parses number and unit, '20px' into [20, 'px']
number-to-words
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
json-bigint-parser
Parse JSON bigint to string
expand-range
Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. Used by micromatch.
num2fraction
Convert number to fraction