solid-storage-root
v1.0.1
Published
Discover the storage root of a Solid pod.
Downloads
3
Readme
solid-storage-root
This is a library that helps you find the storage root of a Solid pod of a given Web ID.
Installation
npm install solid-storage-root
Usage
import {findStorageRoot} from 'solid-storage-root';
const storageRoot = await findStorageRoot('https://solid.pod/profile/card#me');
You can additionally pass a fetch function as a second argument to findStorageRoot
to use a custom (authenticated)
fetch function:
import {findStorageRoot} from 'solid-storage-root';
const storageRoot = await findStorageRoot('https://solid.pod/profile/card#me', fetch);
Development
# Clone the repository
git clone [email protected]:smessie/solid-storage-root.git
cd solid-storage-root
# Install dependencies
npm install
# Build the library
npm run build