s-date
Advanced tools
Comparing version 1.6.3 to 1.6.4
{ | ||
"name": "s-date", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Tiny date/time formatter", | ||
@@ -29,2 +29,7 @@ "main": "index.js", | ||
"ava": "0.24.0", | ||
"benchmark": "2.1.4", | ||
"date-fns": "1.30.1", | ||
"dayjs": "1.7.8", | ||
"luxon": "1.8.3", | ||
"moment": "2.23.0", | ||
"nyc": "11.4.1", | ||
@@ -31,0 +36,0 @@ "typescript": "3.0.3" |
@@ -8,2 +8,4 @@ # s-date | ||
If you don't need full customizability for your date string, you probably don't need this library. Just use [Date.toLocaleDateString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString) and [related](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString) [methods](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString). | ||
## Usage | ||
@@ -52,1 +54,13 @@ ```javascript | ||
``` | ||
## Benchmarks | ||
Run using benchmark.js on 2.3GHz Macbook Pro | ||
``` | ||
s-date x 428,936 ops/sec ±2.29% (79 runs sampled) | ||
moment x 271,963 ops/sec ±1.34% (85 runs sampled) | ||
date-fns x 196,827 ops/sec ±1.17% (80 runs sampled) | ||
dayjs x 121,425 ops/sec ±1.99% (87 runs sampled) | ||
luxon x 90,782 ops/sec ±1.13% (83 runs sampled) | ||
Fastest is s-date | ||
``` |
88699
10
335
65
8