chrono-refiner-wholemonth

0.0.4 • Public • Published

Build Status

chrono-refiner-wholemonth

A chrono refiner for returning whole month ranges

Installation

npm install chrono-refiner-wholemonth

Usage

Add the refiner to any chrono parser you need it in.

import chrono from 'chrono-node'
import wholeMonth from 'chrono-refiner-wholemonth'
 
const parser = new chrono.Chrono
parser.refiners.push(wholeMonth)
 
parser.parse('Jan - Feb') // returns start: Jan 1, 2016 end: Feb 29, 2016

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i chrono-refiner-wholemonth

Weekly Downloads

6

Version

0.0.4

License

MIT

Last publish

Collaborators

  • jonotron