Neo Zero

ms

Pool

Zero-dependency time conversion library - Modern, tree-shakeable alternative to ms package

$ lpm install @lpm.dev/neo.ms
26 exportsTypeScript

dist

Functions

ms
function ms(value: string): number | undefined
ParameterTypeDescription
value
string
ms
function ms(value: number, options?: FormatOptions): string
ParameterTypeDescription
value
number
optionsoptional
FormatOptions
parse
function parse(str: string): number | undefined
ParameterTypeDescription
str
string
formatShort
function formatShort(ms: number): string
ParameterTypeDescription
ms
number
formatLong
function formatLong(ms: number): string
ParameterTypeDescription
ms
number
format
function format(ms: number, options?: FormatOptions): string
ParameterTypeDescription
ms
number
optionsoptional
FormatOptions

Variables

MILLISECONDunknown
SECONDnumber
MINUTEnumber
HOURnumber
DAYnumber
WEEKnumber
YEARnumber

dist

Functions

ms
function ms(value: string): number | undefined
ParameterTypeDescription
value
string
ms
function ms(value: number, options?: FormatOptions): string
ParameterTypeDescription
value
number
optionsoptional
FormatOptions
parse
function parse(str: string): number | undefined
ParameterTypeDescription
str
string
formatShort
function formatShort(ms: number): string
ParameterTypeDescription
ms
number
formatLong
function formatLong(ms: number): string
ParameterTypeDescription
ms
number
format
function format(ms: number, options?: FormatOptions): string
ParameterTypeDescription
ms
number
optionsoptional
FormatOptions

Variables

MILLISECONDunknown
SECONDnumber
MINUTEnumber
HOURnumber
DAYnumber
WEEKnumber
YEARnumber
Unlimited AccessInstall as many Pool packages as you need.
Fund Real WorkEvery install you run sends revenue directly to the developer who built it.

Taxes calculated at checkout based on your location.

Weekly Installs
3
Version
1.0.0
Published
LicenseMIT
Size62.89 KB
Files14
Node version>= 18
TypeScriptYes