any-date-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "any-date-parser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Parse a wide range of date formats including human-input dates", | ||
@@ -5,0 +5,0 @@ "tags": [ |
# any-date-parser | ||
[![NPM Link](https://badgen.net/npm/v/any-date-parser?v=2.0.0)](https://npmjs.com/package/any-date-parser) | ||
[![Language](https://badgen.net/static/language/TS?v=2.0.0)](https://github.com/search?q=repo:kensnyder/any-date-parser++language:TypeScript&type=code) | ||
[![Build Status](https://github.com/kensnyder/any-date-parser/actions/workflows/workflow.yml/badge.svg?v=2.0.0)](https://github.com/kensnyder/any-date-parser/actions) | ||
[![Code Coverage](https://codecov.io/gh/kensnyder/any-date-parser/branch/main/graph/badge.svg?v=2.0.0)](https://codecov.io/gh/kensnyder/any-date-parser) | ||
[![NPM Link](https://badgen.net/npm/v/any-date-parser?v=2.0.1)](https://npmjs.com/package/any-date-parser) | ||
[![Language](https://badgen.net/static/language/TS?v=2.0.1)](https://github.com/search?q=repo:kensnyder/any-date-parser++language:TypeScript&type=code) | ||
[![Build Status](https://github.com/kensnyder/any-date-parser/actions/workflows/workflow.yml/badge.svg?v=2.0.1)](https://github.com/kensnyder/any-date-parser/actions) | ||
[![Code Coverage](https://codecov.io/gh/kensnyder/any-date-parser/branch/main/graph/badge.svg?v=2.0.1)](https://codecov.io/gh/kensnyder/any-date-parser) | ||
![2400+ Tests](https://badgen.net/static/tests/2400+/green) | ||
[![Gzipped Size](https://badgen.net/bundlephobia/minzip/any-date-parser?label=minzipped&v=2.0.0)](https://bundlephobia.com/package/any-date-parser@2.0.0) | ||
[![Dependency details](https://badgen.net/bundlephobia/dependency-count/any-date-parser?v=2.0.0)](https://www.npmjs.com/package/any-date-parser?activeTab=dependencies) | ||
[![Tree shakeable](https://badgen.net/bundlephobia/tree-shaking/any-date-parser?v=2.0.0)](https://www.npmjs.com/package/any-date-parser) | ||
[![ISC License](https://badgen.net/github/license/kensnyder/any-date-parser?v=2.0.0)](https://opensource.org/licenses/ISC) | ||
[![Gzipped Size](https://badgen.net/bundlephobia/minzip/any-date-parser?label=minzipped&v=2.0.1)](https://bundlephobia.com/package/any-date-parser@2.0.1) | ||
[![Dependency details](https://badgen.net/bundlephobia/dependency-count/any-date-parser?v=2.0.1)](https://www.npmjs.com/package/any-date-parser?activeTab=dependencies) | ||
[![Tree shakeable](https://badgen.net/bundlephobia/tree-shaking/any-date-parser?v=2.0.1)](https://www.npmjs.com/package/any-date-parser) | ||
[![ISC License](https://badgen.net/github/license/kensnyder/any-date-parser?v=2.0.1)](https://opensource.org/licenses/ISC) | ||
@@ -18,3 +18,5 @@ The most comprehensive and accurate date parser for Node and browsers. It uses | ||
`npm install any-date-parser` | ||
```shell | ||
npm install any-date-parser | ||
``` | ||
@@ -24,3 +26,3 @@ OR | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/any-date-parser@2.0.0/dist/browser-bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/any-date-parser@2.0.1/dist/browser-bundle.js"></script> | ||
``` | ||
@@ -62,3 +64,3 @@ | ||
There are three ways to use any-date-parser: | ||
There are three ways to use `any-date-parser`: | ||
@@ -68,3 +70,3 @@ 1.) Use the parser object: (Recommended) | ||
- `parser.fromString(string, locale)` - Parses a string and returns a `Date` | ||
object. It is the same function as in option 1. | ||
object. | ||
- `parser.fromAny(any, locale)` - Return a `Date` object given a `Date`, | ||
@@ -71,0 +73,0 @@ `Number` or string to parse. It is the same function as in option 1. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51064
346