+9
| !function($) { | ||
| var ISODate = require('isodate'); | ||
| $.ender({ | ||
| isodate: function isodate(string) { | ||
| return new ISODate(string); | ||
| } | ||
| }); | ||
| }(ender); |
+22
| isodate | ||
| ======= | ||
| enables the parsing of ISO 8601 date strings. | ||
| Usage | ||
| ----- | ||
| ~~~ javascript | ||
| var isodate = require("isodate"); | ||
| // Read a date string | ||
| var date = isodate("2011-08-20T19:39:52Z"); | ||
| console.log(date); | ||
| // Write current date as ISO 8601 string. | ||
| date = new Date(); | ||
| console.log(date.toISOString()); | ||
| ~~~ | ||
| It's also possible to parse strings with timezones like in | ||
| `2011-08-20T19:44:05+01:00`. |
+4
-4
| { | ||
| "author": "Paul Vorbach <paul@vorb.de> (http://vorb.de/)", | ||
| "name": "isodate", | ||
| "description": "JavaScript ISO 8061 date/time parser", | ||
| "version": "0.0.3", | ||
| "description": "JavaScript ISO 8601 date/time parser", | ||
| "version": "0.1.0", | ||
| "repository": { | ||
@@ -10,4 +10,4 @@ "type": "git", | ||
| }, | ||
| "main": "isodate.js", | ||
| "ender": "isodate.js", | ||
| "main": "./isodate.js", | ||
| "ender": "./ender.js", | ||
| "engines": { | ||
@@ -14,0 +14,0 @@ "node": "*" |
| .gitignore | ||
| .npmignore |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3124
4.27%37
27.59%23
15%0
-100%