EDTF.js
An Extended Date Time Format (EDTF) / ISO 8601-2 parser and toolkit for
date/time hackers and enthusiasts.
Compatibility
EDFT / ISO 8601-2
EDTF.js fully implements EDTF
levels 0, 1, and 2 as specified by WD 2016-02-16 of ISO 8601-2.
Installation
Node.js
$ npm install edtf
EDTF.js is written in ES6 and therefore requires Node.js 6+. You should
be able to use it in Node 4 or 5 when setting the appropriate
--harmony
flags or by using your favourite transpiler.
Browser
EDTF.js was written for Node.js. While we don't currently provide a
browser package, it should be easily possible to create one using
browserify or similar tools.
Parser
Generator
API
Credits
The EDTF.js parser is based on the awesome
nearley parser generator.
The EDTF.js generator uses the ingenious
randexp.
License
AGPL-3.0