Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

isodate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isodate - npm Package Compare versions

Comparing version
0.0.3
to
0.1.0
+9
ender.js
!function($) {
var ISODate = require('isodate');
$.ender({
isodate: function isodate(string) {
return new ISODate(string);
}
});
}(ender);
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