JSPM

week-seconds

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

Get the number of seconds/milliseconds in a week.

Package Exports

  • week-seconds

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 (week-seconds) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm mit license build status coverage status deps status

Get the number of seconds/milliseconds in a week.

Install

npm i --save week-seconds
npm test

API

For more use-cases see the tests

weekSeconds

Get the number of seconds/milliseconds in a week.

  • [bool] {Boolean} when true, returns seconds, pass to day-seconds
  • return {Number}

Example:

var weekSeconds = require('week-seconds');

weekSeconds(false);
//=> 604800000

weekSeconds();
//=> 604800000

weekSeconds('str');
//=> 604800000

weekSeconds([1,2,3]);
//=> 604800000

weekSeconds(/regex/gm);
//=> 604800000

weekSeconds({});
//=> 604800000

weekSeconds(true);
//=> 604800

Author

Charlike Mike Reagent

License MIT license

Copyright (c) 2014-2015 Charlike Mike Reagent, contributors.
Released under the MIT license.


Powered and automated by kdf, March 02, 2015