Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

date-tool

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-tool

Useful functions for Dates

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

date-tool

Build Status Dependencies Development Dependencies

npm

Import the parts you need:

import { getDateString } from 'date-tool';

Functions

getDateString

getDateString() → String

Formats the current date in a custom format. For example: 2 Feb 2015

getIsoDateString

getIsoDateString() → String

Formats the current date as per ISO 8601. For example: 2015-02-05

throttle

throttle(func, wait[, options]) → Function

debounce

debounce(fn, wait[, hash]) → Function

Contributing

Download source and compile:

git clone git@github.com:JannesMeyer/date-tool.git
yarn

Compile and watch for file changes:

yarn start

Run tests:

yarn test

Keywords

FAQs

Package last updated on 26 Sep 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc