Skip to content

smessie/solid-storage-root

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published