Socket
Socket
Sign inDemoInstall

current-week-number

Package Overview
Dependencies
10
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    current-week-number

Get current week number of the current year or given date string format.


Version published
Maintainers
1
Install size
86.7 kB
Created

Readme

Source

Week number NPM version Build Status Dependency Status Coveralls

Get current week number of the current year or given date string format.

Install Nodei.co stats

Install with npm

$ npm install current-week-number
$ week --help

Usage

var currentWeekNumber = require('current-week-number');

// june 27, 2014
currentWeekNumber()
//=> 26

currentWeekNumber("March 24, 2015")
//=> 13

currentWeekNumber("03/24/2016")
//=> 12, cuz' year is leap

currentWeekNumber("August 07, 2015")
//=> 32

currentWeekNumber("02/16/2015")
//=> 8

CLI


  Get current week number of the current year or given date string format.

  Options
    --help                Show this help
    --version             Current version of package
    -f | --format         Valid date format string

  Usage
    week [date format]

  Examples
    week
    week "March 24, 2015"
    week "03/24/2016"

Authors & Contributors

Charlike Mike Reagent author tips

License MIT license

Copyright (c) 2014 Charlike Mike Reagent, contributors.
Released under the MIT license.

Keywords

FAQs

Last updated on 08 Dec 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc