Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 9, 2024
1 parent 14618f0 commit 4766224
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions README.md
Expand Up @@ -13,7 +13,7 @@ Read/Write RC configs couldn't be easier!

## Install

Install using npm or yarn:
Install dependencies:

<!-- automd:pm-i -->

Expand All @@ -36,9 +36,9 @@ bun install rc9

<!-- /automd -->

Import into your Node.js project:
Import utils:

<!-- automd:jsimport src="./src/index.ts"-->
<!-- automd:jsimport cjs src="./src/index.ts"-->

**ESM** (Node.js, Bun)

Expand All @@ -57,6 +57,23 @@ import {
} from "rc9";
```

**CommonJS** (Legacy Node.js)

```js
const {
defaults,
parse,
parseFile,
read,
readUser,
serialize,
write,
writeUser,
update,
updateUser,
} = require("rc9");
```

<!-- /automd -->


Expand Down

0 comments on commit 4766224

Please sign in to comment.