0.1.2 • Published 1 month ago

@renyuneyun/solid-helper v0.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

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 have space:storage specified.
  • isStorageInLinkHeader(): Identify if the given URL is a storage based on the Link 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.

0.1.2

1 month ago

0.1.1

1 month ago

0.1.0

2 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago