1.0.3 • Published 1 year ago
pro-date v1.0.3
pro-date • Documentation
A lightweight date utility class for parsing, formatting, and manipulating dates.
Installation
You can install the package using npm, yarn, or pnpm.
pnpm add pro-date
yarn install pro-date
npm install pro-dateUsage
import { ProDate } from "pro-date";
const parsedDate = ProDate.parse("2023-09-24 14:30", "YYYY-MM-DD HH:mm");
console.log(parsedDate); // Outputs: ProDate { date: Sun Sep 24 2023 14:30:00 }tsup
Bundle your TypeScript library with no config, powered by esbuild.
How to use this
- install dependencies
# pnpm
$ pnpm install
# yarn
$ yarn install
# npm
$ npm install- Add your code to
src - Add export statement to
src/index.ts - Test build command to build
src. Once the command works properly, you will seedistfolder.
# pnpm
$ pnpm run build
# yarn
$ yarn run build
# npm
$ npm run build- Publish your package
$ npm publish