weekft

1.0.0 • Public • Published

Week From Today

Get week days names from today.

SuperEasy

  // Modules
  var week = require('weekft');
  var d = new Date();


  var $today = d.getDay(); // ==> 5 (Friday)

  // return week from $today
  week( $today );
  // or from string
  week('Friday')

  // ==> ['Friday', 'Saturday', 'Sunday', 'Monday', etc..] <==

Install

  $ npm install weekft --global

API | week([input])

Type: number or string
Return: array


Related

A project by @Rawnly

Readme

Keywords

none

Package Sidebar

Install

npm i weekft

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rawnly