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

weekday

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

weekday

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

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
17
41.67%
Maintainers
1
Weekly downloads
 
Created
Source

weekday NPM version

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

Install with npm

npm i weekday --save

Run tests

npm test

Usage

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

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

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

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

Contributing

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

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

calendar

FAQs

Package last updated on 07 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