0.1.2 • Published 2 years ago
@renyuneyun/solid-helper v0.1.2
Solid Helper
This repo contains common helpers for developing SoLiD (Social Linked Data) Apps with JS/TS.
It emerged from my personal requirements, because I routinely or predictively need some functionalities.
Docs
Under construction...
For the time being, please see index.ts for exported functions and types. They are mainly:
getUserInfo(): Get some common information of the WebID (avatar, name, etc).findStorage(): Get the Pod / storage (recursively up) from the specified URL. Mainly used when WebID does not havespace:storagespecified.isStorageInLinkHeader(): Identify if the given URL is a storage based on theLinkheader.
Test
This repo comes with simple / naive tests, under test/test.mjs.
To run the test:
POD_URL='https://YOUR-POD-URL/' npm testSee document inside the file for more details.