Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 2.76 KB

README.md

File metadata and controls

79 lines (51 loc) · 2.76 KB

weekday NPM version NPM downloads Build Status

Get the name and number of the current weekday. Or get the name of the weekday for a given number.

Install

Install with npm:

$ npm install --save weekday

Usage

var weekday = require('weekday');
weekday();
//=> 'Sunday' (current day)

weekday('Sunday');
//=> '1'

weekday(1);
//=> 'Sunday'

weekday(4);
//=> 'Wednesday'

About

Related projects

Contributors

Commits Contributor
12 jonschlinkert
1 brentvatne
1 davidohlin

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.1.31, on September 19, 2016.