Socket
Book a DemoInstallSign in
Socket

@niina/datestamp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@niina/datestamp

Get full datestamp by YYYYMMDDMS (optional) format

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

@niina/datestamp

Author: Danil Shaymurzin

Example

const ds = require('@niina/datestamp')

ds() // 2020082000000000 (length = 16)

const options = {
  format: 'DDMMYYYYMS' // Default: YYYYMMDDMS
  cutend: 3 // Default: 0
}

ds(options) // 2008202000000 (length = 13)

Keywords

datestamp

FAQs

Package last updated on 20 Aug 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