Socket
Book a DemoInstallSign in
Socket

weekday

Package Overview
Dependencies
Maintainers
2
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.

latest
Source
npmnpm
Version
3.0.1
Version published
Weekly downloads
18
157.14%
Maintainers
2
Weekly downloads
 
Created
Source

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

  • time-diff: Returns the formatted, high-resolution time difference between start and end times. | homepage
  • time-stamp: Get a formatted timestamp. | homepage
  • week: Get the current week number. | homepage
  • year: Simple utility to get the current year with 2 or 4 digits. | homepage

Contributors

CommitsContributor
12jonschlinkert
1brentvatne
1davidohlin

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.

Keywords

calendar

FAQs

Package last updated on 19 Sep 2016

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