date.format
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -16,3 +16,3 @@ /* jslint node: true */ | ||
Y: date.getUTCFullYear(), | ||
M: date.getUTCMonth(), | ||
M: date.getUTCMonth() + 1, | ||
D: date.getUTCDate(), | ||
@@ -27,3 +27,3 @@ h: date.getUTCHours(), | ||
Y: date.getFullYear(), | ||
M: date.getMonth(), | ||
M: date.getMonth() + 1, | ||
D: date.getDate(), | ||
@@ -36,3 +36,5 @@ h: date.getHours(), | ||
} | ||
d.YY = d.Y.toString(); | ||
d.YYYY = d.Y.toString() | ||
d.YY = d.Y.toString().slice(2); | ||
d.MM = d.M.toString(); | ||
@@ -54,12 +56,1 @@ d.DD = d.D.toString(); | ||
} | ||
/* -------------------------------- */ | ||
var date = new Date(); | ||
console.log(date.format("Local: Day {Y}/{M}/{D} at {h}:{m}:{s} and {ms}ms")); | ||
console.log(date.format("Local: Day {YY}/{MM}/{DD} at {hh}:{mm}:{ss} and {mss}ms")); | ||
console.log(date.format("UTC: Day {Y}/{M}/{D} at {h}:{m}:{s} and {ms}ms",true)); | ||
console.log(date.format("UTC: Day {YY}/{MM}/{DD} at {hh}:{mm}:{ss} and {mss}ms",true)); | ||
/* -------------------------------- */ |
{ | ||
"name": "date.format", | ||
"description": "JS Date format utility (UTC/local), (new Date()).format('Today {Y}/{M}/{D} at {h}:{m}:{s}:{ms}');", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"author": { | ||
"name": "Bifuer", | ||
"name": "Javier Gallego Martín", | ||
"email": "bifuer@gmail.com" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Chelo Quilón Gomez", | ||
"email": "cheloq@gmail.com" | ||
} | ||
], | ||
"homepage": "https://github.com/bifuer/date.format", | ||
"repository": { | ||
@@ -13,8 +20,33 @@ "type": "git", | ||
}, | ||
"main": "./format.js", | ||
"scripts": {}, | ||
"bugs": { | ||
"url": "https://github.com/bifuer/date.format/issues", | ||
"email" : "bifuer@gmail.com" | ||
}, | ||
"keywords": [ | ||
"date", | ||
"time", | ||
"format", | ||
"parse", | ||
"beautify", | ||
"pattern" | ||
], | ||
"dependencies": { | ||
"string.format":"*" | ||
"string.format": "*" | ||
}, | ||
"readmeFilename": "readme.md" | ||
"devDependencies": { | ||
"mocha": "*", | ||
"unit.js": "*" | ||
}, | ||
"main": "./format.js", | ||
"scripts":{ | ||
"test": "mocha test/" | ||
}, | ||
"preferGlobal": false, | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"format.js" | ||
], | ||
"readmeFilename": "readme.md", | ||
"license": "MIT" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7225
4
0
1
0
2
88
2
46