Socket
Socket
Sign inDemoInstall

date-fns

Package Overview
Dependencies
0
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

src/__tests__/is_today_test.js

9

CHANGELOG.md
# Changelog
## v0.2.0 (6 Oct 2014)
* Additions:
- `isToday`
- `isWeekend`
## v0.1.0 (6 Oct 2014)
* `startOfDay`
* Additions:
- `startOfDay`

2

package.json
{
"name": "date-fns",
"version": "0.1.0",
"version": "0.2.0",
"author": "Sasha Koss <kossnocorp@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Date helpers",

@@ -7,11 +7,7 @@ # date-fns

### `[startOfDay](./src/start_of_day.js)`
Code is fully documented, checkout source for reference.
Example:
* [`isWeekend`](./src/is_weekend.js) - is passed date is weekend?;
* [`isToday`](./src/is_today.js) - is passed date is today?;
* [`startOfDay`](./src/start_of_day.js) - returns start of day for passed date;
``` js
var startOfDay = require('date-fns/start_of_day');
startOfDay(new Date('2014-09-02T11:55:00'))
//=> 'Tue Sep 02 2014 00:00:00 GMT+0400 (MSK)'
```
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