An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# week [![NPM version](https://img.shields.io/npm/v/week.svg?style=flat)](https://www.npmjs.com/package/week) [![NPM monthly downloads](https://img.shields.io/npm/dm/week.svg?style=flat)](https://npmjs.org/package/week) [![NPM total downloads](https://img.shields.io/npm/dt/week.svg?style=flat)](https://npmjs.org/package/week) [![Linux Build Status](https://img.shields.io/travis/datetime/week.svg?style=flat&label=Travis)](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._