strtoms
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

strtoms

Convert string to milliseconds

Install

$ npm i strtoms

Usage

const strtoms = require("strtoms");

strtoms("1ms"); // 1
strtoms("12s"); // 12000
strtoms("1h"); // 3600000
strtoms("1d"); // 86400000

/strtoms/

    Package Sidebar

    Install

    npm i strtoms

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    2.75 kB

    Total Files

    6

    Last publish

    Collaborators

    • hanai