@renyuneyun/solid-helper
v0.1.2
Published
Common helpers for developing SoLiD (Social Linked Data) under JS/TS
Downloads
4
Readme
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:storage
specified.isStorageInLinkHeader()
: Identify if the given URL is a storage based on theLink
header.
Test
This repo comes with simple / naive tests, under test/test.mjs
.
To run the test:
POD_URL='https://YOUR-POD-URL/' npm test
See document inside the file for more details.