strings-parser-date
Parser for strings to handle date parsing.
Last updated 9 years ago by doowb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install strings-parser-date 
SYNC missed versions from official npm registry.

strings-parser-date NPM version

Parser for strings to handle date parsing.

Install

Install with npm:

npm i strings-parser-date --save

Usage

Add as a strings parser:

var Strings = require('strings');
var date = require('strings-parser-date');

var strings = new Strings();
strings.parser('date', date());

var context = {
  date: '2014-MAY-15'
};
var template = ':YYYY';
var str = strings.template(template, 'date', context);

// expected: '2014'
console.log(str);

Author

Brian Woodward

License

Copyright (c) 2014 Brian Woodward, contributors.
Released under the MIT license


This file was generated by verb-cli on May 15, 2014.

Current Tags

  • 0.1.1                                ...           latest (9 years ago)

2 Versions

  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (4)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE