dayjs-with-plugins

    0.0.4 • Public • Published

    dayjs-with-plugins

    build status code coverage code style styled with prettier made with lass license npm downloads

    Day.js with all plugins added out of the box, no need to use dayjs.extend!

    Table of Contents

    Install

    npm:

    npm install dayjs dayjs-with-plugins

    yarn:

    yarn add dayjs dayjs-with-plugins

    Usage

    Node

    const dayjs = require('dayjs-with-plugins');
     
    console.log('M/D/YY', dayjs().format('M/D/YY'));

    Browser

    VanillaJS

    This is the solution for you if you're just using <script> tags everywhere!

    <script src="https://polyfill.io/v3/polyfill.min.js?features=es6,es7,Array.from,Symbol,console"></script>
    <script src="https://unpkg.com/dayjs-with-plugins"></script>
    <script type="text/javascript">
      (function() {
        console.log('M/D/YY', dayjs().format('M/D/YY'));
      })();
    </script> 
    Required Browser Features

    We recommend using https://polyfill.io (specifically with the bundle mentioned in VanillaJS above):

    <script src="https://polyfill.io/v3/polyfill.min.js?features=es6,es7,Array.from,Symbol,console"></script>
    • Array.from() is not supported in IE 11
    • Symbol.iterator() is not supported in IE 11
    • Symbol.prototype() is not supported in IE 11
    • Symbol is not supported in IE 11
    • console.table() is not supported in IE 11

    Bundler

    This assumes you are using browserify, webpack, rollup, or another bundler.

    See Node usage above for how to use in a bundler environment.

    Contributors

    Name Website
    Nick Baugh http://niftylettuce.com/

    License

    MIT © Nick Baugh

    Install

    npm i dayjs-with-plugins

    DownloadsWeekly Downloads

    256

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    61.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • niftylettuce