https://github.com/datetime/week
Get the current week number.
https://github.com/datetime/week
Last synced: over 1 year ago
JSON representation
Get the current week number.
- Host: GitHub
- URL: https://github.com/datetime/week
- Owner: datetime
- License: mit
- Created: 2014-12-07T05:39:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-12-10T10:44:35.000Z (over 9 years ago)
- Last Synced: 2025-04-09T16:03:00.269Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://github.com/datetime
- Size: 8.79 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# week [](https://www.npmjs.com/package/week) [](https://npmjs.org/package/week) [](https://npmjs.org/package/week) [](https://travis-ci.org/datetime/week)
> Get the current week number.
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save week
```
## Usage
```js
var week = require('week');
week();
//=> '50' (December)
```
## About
### Related projects
* [days](https://www.npmjs.com/package/days): Days of the week. | [homepage](https://github.com/jonschlinkert/days "Days of the week.")
* [months](https://www.npmjs.com/package/months): Months of the year. | [homepage](https://github.com/jonschlinkert/months "Months of the year.")
* [seconds](https://www.npmjs.com/package/seconds): Get the number of seconds for a minute, hour, day and week. | [homepage](https://github.com/jonschlinkert/seconds "Get the number of seconds for a minute, hour, day and week.")
* [weekday](https://www.npmjs.com/package/weekday): Get the name and number of the current weekday. Or get the name of the… [more](https://github.com/datetime/weekday) | [homepage](https://github.com/datetime/weekday "Get the name and number of the current weekday. Or get the name of the weekday for a given number.")
### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
### Contributors
| **Commits** | **Contributor**
|
| --- | --- |
| 2 | [jonschlinkert](https://github.com/jonschlinkert) |
| 1 | [Dafrok](https://github.com/Dafrok) |
### Building docs
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
```sh
$ npm install -g verb verb-generate-readme && verb
```
### Running tests
Install dev dependencies:
```sh
$ npm install -d && npm test
```
### Author
**Jon Schlinkert**
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
### License
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/datetime/week/blob/master/LICENSE).
***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 10, 2016._