JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q36544F
  • License MIT

Get the current local time of a GitHub user.

Package Exports

  • dev-time

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dev-time) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 overriden globally with the GITHUB_TOKEN environment variable.

License

MIT © Sam Verschueren