From f2b7a8835f7aefa532ba5a92f2b1766185672493 Mon Sep 17 00:00:00 2001 From: Arun Bose Date: Wed, 30 Mar 2022 20:29:26 +0530 Subject: [PATCH] update readme --- README.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f85c66..72c87cd 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,19 @@ node like `fs` API for the browser that uses indexedDB/ fs access browser APIs for persistence. ## Installation +The library can be either installed using npm or using the CDN link (See usage in browser below ). + +### Getting the code locally +Install the library can be downloaded locally with the following command: + +```bash +npm install @phcode/fs +``` + +Once installed, the `virtualfs.js` lib will be present in the following location +```bash +/node_modules/@phcode/fs/dist/virtualfs.js +``` ### Usage in browser Put the below script tag in your html file. A Global `fs` object will be created with the necessary fs APIs. @@ -10,7 +23,14 @@ will be created with the necessary fs APIs. See filer docs for API docs: https://filer.js.org/ ```js -