1.0.1 • Published 5 months ago

solid-storage-root v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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 git@github.com:smessie/solid-storage-root.git
cd solid-storage-root

# Install dependencies
npm install

# Build the library
npm run build
1.0.1

5 months ago

1.0.0

5 months ago