Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

current-day-number

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

current-day-number

Get day number of the current date/year or given valid `Date` string format

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
60
increased by39.53%
Maintainers
3
Weekly downloads
 
Created
Source

npm mit license build status coverage status deps status

Get day number of the current date/year or given valid Date string format

Install

npm i --save current-day-number
npm test
current-day-number --help

API

For more use-cases see the tests

currentDayNumber

Get day number of the current date/year or given valid Date string format

  • [date] {String} every valid Date-ish string format
  • return {Number}

Example:

var currentDayNumber = require('current-day-number');

// june 27, 2014
currentDayNumber();
//=> 177

currentDayNumber('');
//=> 177

currentDayNumber('August 07, 2015');
//=> 218

currentDayNumber('August 07, 2016');
//=> 219, cuz' year is leap

currentDayNumber('02/16/2015');
//=> 47

CLI

You can just run current-day-number --help for more information.

current day number cli image

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

Keywords

FAQs

Package last updated on 02 Mar 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc