1.0.4 • Published 4 years ago

uwadie v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Uwadie Plugin

How to install

NPM: npm i uwadie --save

Yarn: yarn add uwadie

Implementation

The implementation is straight forward, you create a new instance of Uwadie passing in no options. Afterwards you call the getFormattedTime method which takes in an object of options and a callback which returns the formatted time. Passing in an empty object returns the formatted time with the AM/PM convention. Passing in an object with setTimestamp property set to false returns the time without the AM/PM convention

// use with the import syntax
import Uwadie from "Uwadie";
// use with require (commonJS)
const Uwadie = require("uwadie");
//returns time with AM/PM convention
const getTime = new Uwadie();
getTime.getFormattedTime({}, time=> console.log(time)) // returns 23:22PM
//returns time without AM/PM convention
const getTime = new Uwadie();
getTime.getFormattedTime({setTimeStamp: false}, time=> console.log(time)) // returns 23:22

Interested in my work ? Check me out

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago