New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

day-serial

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

day-serial

day serial.

latest
Source
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

day-serial

Generate daily id

NPM version license

example

const serial = require('day-serial')

let a = serial()
console.log(a)	// A000020180511

first update

  • Supports head parameters

example

  • no parameters
const serial = require('day-serial')

let a = serial()
console.log(a)	// A000020180511
  • parameters
const serial = require('day-serial')

let head = 'ABC000'
let b = serial(head)
console.log(b)	// ABC00020180511

let a = serial('ABC000')
console.log(a)	// ABC00020180511
  • ES6
import serial from 'day-serial'

let a = serial()
console.log(a)	// A000020180511

let b = serial('ABC000')
console.log(b)	// ABC00020180511

let head = 'ABC000'
let c = serial(head)
console.log(c)	// ABC00020180511

Keywords

serial

FAQs

Package last updated on 10 Jul 2018

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