A helper library for Javascript Date object
- Zero-setup. After running
npm install
things will setup for you 😉 - Typescript support
- Lint using ESLint
- Automated releases using semantic-release
Clone the repo and then run npm install
. That's all!
Start coding! package.json
and entry files are already set up for you, so don't worry about linking to your main file, typings, etc. Just keep those files with the same name.
npm run build
: Generate bundles and typings, create docsnpm run detect-duplicates
: Detect code duplicatesnpm run lint
: Lints codenpm run lint-fix
: Lints and fix the codenpm run test
: Run tests
- Install the library
npm install git+https://github.com/clearvox/date-helper-lib.git#{fragment}
fragment
can either be a tag or a branch you are working on (let say if you want to test some code before merge)
- Then use it:
const { DateHelper } = require('@clearvox/date-helper');
console.log(DateHelper.formatForLogging(new Date()))