dev-time

1.0.1 • Public • Published

dev-time Build Status

Get the current local time of a GitHub user.

Install

$ npm install --save dev-time

Usage

const devTime = require('dev-time');
 
devTime('SamVerschueren').then(time => {
    console.log(time);
    //=> '2015-12-07T08:34:55+01:00'
});

API

devTime(user, [options])

user

Type: string

The GitHub user to retrieve the current local time for.

options

token

Type: string

GitHub access token.

Can be set globally with the GITHUB_TOKEN environment variable.

Related

License

MIT © Sam Verschueren

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

Package Sidebar

Install

npm i dev-time

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • samverschueren