Skip to content

Commit

Permalink
docs: add usage section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanga-Ganapathy committed Apr 20, 2023
1 parent 80814a2 commit 83a8f64
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-socks-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opentf/utils": patch
---

Added usage section to readme
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ Using pnpm
pnpm add @opentf/utils
```

## Usage

```ts
import { range, camelCase, sleep } from "@opentf/utils";

range(1, 5); //=> [1, 2, 3, 4, 5]

camelCase('i phone') //=> 'iPhone'

await sleep(1000); // It suspends the exection for 1 second.
```

## Documentation

Please visit [https://js-utils.pages.dev](https://js-utils.pages.dev) to get started.
Expand Down

0 comments on commit 83a8f64

Please sign in to comment.