Skip to content

Commit

Permalink
released v0.1.5 - README update
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhitley committed Oct 23, 2022
1 parent ac7e5db commit 30053bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Tiny (~530 bytes) time math library for making date handling and TTLs within you

## Features

- Tiny @ ~530 bytes gzipped
- Tiny @ ~530 bytes gzipped total, and tree-shakeable even further.
- Fully typed/TypeScript support
- Use plain text strings to describe time, not seconds/milliseconds
- Get TTLs
- Get future dates
- Divide durations

## Simple Usage
## Example

```js
import { getTTL, divide, getDatePlus } from 'itty-time' // under 600 bytes
Expand Down Expand Up @@ -50,7 +50,7 @@ divide('3 days').by('hours') // 72
divide('1 day, 30 minutes').by('hours') // 24.5
```

## DISCLAIMER: This is a CONVENIENCE library for making short, readable code.
#### DISCLAIMER: This is a CONVENIENCE library for making short, readable code.

If you need absolute max performance for iterative work in a single thread, do the operations manually. That's always faster.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "itty-time",
"version": "0.1.4",
"version": "0.1.5",
"description": "A tiny library to handle common time-related things for your API in a beautiful way.",
"sourceType": "module",
"main": "./dist/itty-time.js",
Expand Down

0 comments on commit 30053bc

Please sign in to comment.