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

date-template

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-template - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

2

package.json
{
"name": "date-template",
"version": "2.0.8",
"version": "2.0.9",
"description": "Easy function for returning date by template.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,3 +28,2 @@ # date-template

/* return new Date */
var dateTemplate = require('date-template')

@@ -51,5 +50,3 @@ dateTemplate('%h:%m:%s')

/* return other Date */
var dateTemplate = require('date-template')
var milliseconds = +new Date()

@@ -74,5 +71,3 @@ // 1499015643673

/* return Date to user format */
var dateTemplate = require('date-template')
var middlewareMount = (date) => {

@@ -141,5 +136,5 @@ var mounth = [

h: { key: /%0?h/g, value: date.getHours(), }, // hourse
m: { key: /%0?m/g, value: date.getMinutes(), }, // minutes;
s: { key: /%0?s/g, value: date.getSeconds(), }, // seconds
ms: { key: /%0?ms/g, value: date.getMilliseconds(), }, // milliseconds
m: { key: /%0?m/g, value: date.getMinutes(), }, // minutes;
}

@@ -146,0 +141,0 @@ tmp = middleware ? middleware(tmp) : tmp

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