@thebespokepixel/time
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

@thebespokepixel/time

Bespoke Time Collection : A collection of utilities for Time and Space.

Publishing Status

npm Libraries.io
Travis Rollup

Development Status

Travis Libraries.io
Snyk Code-Climate Code-Climate Coverage

Documentation/Help

Inch.io Twitter

About

A convenience package for pulling together a bunch of useful time modules into one place.

Currently this includes:

  • Moment.js
  • Luxon
  • node-dateformat

Usage

Installation

npm install --save @thebespokepixel/time

Example

import {
  bespokeTime,
  bespokeTimeFormat,
  DateTime,
  Interval,
  Duration
} from '@thebespokepixel/time'

const now = bespokeTime()
console.log(bespokeTimeFormat(now, 'HH:mm:ss'))

See Moment Docs for bespokeTime
See dateformat for bespokeTimeFormat
See Luxon Docs for DateTime, Interval and Duration

Documentation

Full documentation can be found at https://thebespokepixel.github.io/time/

Readme

Keywords

Package Sidebar

Install

npm i @thebespokepixel/time

Weekly Downloads

28

Version

2.0.3

License

MIT

Unpacked Size

22.2 kB

Total Files

4

Last publish

Collaborators

  • thebespokepixel