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 1.0.3 to 1.0.4

3

expample.js

@@ -38,2 +38,3 @@ var dateTemplate = require('./index')

var mounth = [
null
'January',

@@ -52,3 +53,3 @@ 'February',

]
date['~M~'] = mounth[ date['~M~']-1 ]
date['~M~'] = mounth[ date['~M~'] ]
return date

@@ -55,0 +56,0 @@ }

{
"name": "date-template",
"version": "1.0.3",
"description": "Easy function to return template date",
"version": "1.0.4",
"description": "Easy function to return template date.",
"main": "index.js",

@@ -18,4 +18,5 @@ "author": "serg <ss0sergey@gmail.com>",

"time format",
"time template"
"time template",
"template"
]
}

@@ -13,4 +13,4 @@ ## date-template

- ```~Y~``` Year ****
- ```~M~``` Month, from 01 to 12
- ```~D~``` Day, from 01 to 31
- ```~M~``` Month, from 1 to 12
- ```~D~``` Day, from 1 to 31
- ```~Dw~``` Day of the week 0-sunday, 6-saturday

@@ -72,2 +72,3 @@ - ```~h~``` hourse

var mounth = [
null,
'January',

@@ -86,3 +87,3 @@ 'February',

]
date['~M~'] = mounth[ date['~M~']-1 ]
date['~M~'] = mounth[ date['~M~'] ]
return date

@@ -89,0 +90,0 @@ }

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