1.0.9 • Published 3 years ago

new-date-time-helper v1.0.9

Weekly downloads
31
License
MIT
Repository
github
Last release
3 years ago

date-time-helper

Usage

Node environment

Install
npm install new-date-time-helper
Usage
import { DateTimeHelper } from "new-date-time-helper";
console.log(DateTimeHelper.getTodayYearMonthData());

Browser environment

Add this script in the body of html.

<script src="https://www.unpkg.com/new-date-time-helper@version/out/date-time-helper.js"></script>

Use this way in js files.

Dispatch.DateTimeHelper.getTodayYearMonthData()

Setup

First, clone this git repo.

Then, enter the date-time-helper directory and run the build script:

npm install
npm install -g gulp

Test

gulp test

Build

gulp

This will generate two folder dist and out.

dist will be used when using the library in node environment.

out will be used when using the library in browser environment.

Publish

For publishing, after adding neccessary funtionality and test, need to push to main branch.

gulp git add . git commit -m "dist built" git tag "1.0.8" git push origin main git push --tags npm publish

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.2.3

3 years ago

0.2.3-beta.0

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago