Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

chrono-refiner-wholemonth

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrono-refiner-wholemonth

A chrono refiner to extract whole month ranges

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 26 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts