JSPM

time-ago-formating

1.2.5
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q27453F
    • License ISC

    time ago formating

    Package Exports

    • time-ago-formating

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (time-ago-formating) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm i time-ago-formating

    Examples

    const { format } = require("time-ago-formating");
    
    console.log(format(Date.now() - 1000))); // a second ago
    const { format } = require("time-ago-formating");
    
    console.log(format(Date.now() - 8000))); // 8 seconds ago