Socket
Socket
Sign inDemoInstall

few2-1-date-library

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    few2-1-date-library

For FEW 2.1 (Advanced Javascript) at Make School. Assignment #2.


Version published
Maintainers
1
Install size
10.1 kB
Created

Readme

Source

Date Library Project

npm NPM GitHub repo size GitHub issues

For FEW 2.1 (Advanced Javascript) at Make School. Assignment #2.

v1.2.3

Built with Javascript ES6 (Vanilla)

A Library of reusable code that operates on dates. These functions solve the problems below:

  1. This class of functions provides human readable values for year, month, date, hours minutes and seconds.
  2. The format() function adds methods to create mask strings to return dates in easier to read formats. Capital letters give full, padded returns and lowercase letter return short formats.
  3. The when() function gives a human readable description of 'when' a date will occur, whether past or future. This includes years, months and days.

Run

$ 'node src/index' to run program in console

$ 'npm run test' to run tests

$ 'npx --coverage' to check test coverage

$ 'npm install' for dependencies

Updates

  1. Added unit test with 'Jest' Library
  2. Added Badges

FAQs

Last updated on 15 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc