@reskit/date
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Install

Install @reskit/date by pnpm

pnpm add @reskit/date

Usage

At current version, we only support extract zh localized date

import { extractDate, updateLocalized } from "@reskit/date";
import { zhLocalize, createZhRegexp } from "@reskit/date";

updateLocalized({
  useRegexp: createZhRegexp(),
  data: zhLocalize,
});

const result = extractDate("今天早上到明天晚上都要开会!");

The result will be today's 10:00 and tomorrow's 20:00

Others

Welcome to contribute and make @reskit/date better!

Package Sidebar

Install

npm i @reskit/date

Weekly Downloads

0

Version

1.3.1

License

Apache-2.0

Unpacked Size

29.1 kB

Total Files

16

Last publish

Collaborators

  • simumn