From 47662241299daba7ff6d2073debc691351e53ede Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 9 Apr 2024 18:58:58 +0200 Subject: [PATCH] chore: update readme --- README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f134de9..d0a3c7e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Read/Write RC configs couldn't be easier! ## Install -Install using npm or yarn: +Install dependencies: @@ -36,9 +36,9 @@ bun install rc9 -Import into your Node.js project: +Import utils: - + **ESM** (Node.js, Bun) @@ -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"); +``` +