GithubHelp home page GithubHelp logo

lite-date's Introduction

Lite Date ⏰

Fast & lightweight date formatting for Node.js. An alternative to moment.js

Our aim is to provide fast and easy way to format dates, while also staying lite.


Installation

  • install the package
$ npm install lite-date

Usage

const litedate = require('lite-date');
let liteDate = litedate.litedate;

function available

  • liteDate.now()
  • liteDate.day()
  • liteDate.month()
  • liteDate.timezone()
  • liteDate.utc()

format date

liteDate.formatDate('20/02/2023', 'YYYY-MM-DD');  //=> '2023-02-20'
liteDate.addDays('2023-02-20', 2);
liteDate.subtractDays('2023-02-20', 5);

Benchmarks

# Node.js v16.13.1

lite-date              x   1,435,494 ops/sec ±0.18% (96 runs sampled)
date-format            x   835,649 ops/sec ±0.20% (96 runs sampled)
moment                 x   650,721 ops/sec ±2.13% (90 runs sampled)

Issues/Feature Requests

Github Issues/Features

License

ISC © Prashant Sudeep

lite-date's People

Contributors

psudeep avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.