🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

minutes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minutes

Get the number of minutes for an hour, day, week and the elapsed minutes for the current day.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

minutes NPM version

Get the number of minutes for an hour, day, week and the elapsed minutes for the current day.

Install with npm

npm i minutes --save

Run tests

npm test

Usage

var minutes = require('minutes');

// elapsed minutes today
console.log(minutes('today'));
//=> 1201

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

I'd like to implement the following if someone wants to do a PR before I get around to them:

  • today: function to calculate minutes since beginning of the day
  • month: function to calculate minutes since beginning of the month
  • year: function to calculate minutes since beginning of the year

I'm also open to other ideas for this lib.

Other libs I maintain

From other maintainers

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license

This file was generated by verb on December 07, 2014. To update, run npm i -g verb && verb.

Keywords

am

FAQs

Package last updated on 08 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts