# solid-bashlib

> **For [documentation](https://solidlabresearch.github.io/Bashlib/documentation/overview/) and a [tutorial](https://solidlabresearch.github.io/Bashlib/tutorial/), please visit the [Bashlib Website](https://solidlabresearch.github.io/Bashlib/).**

Latest version **0.6.5** (published 2025-05-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install solid-bashlib
pnpm add solid-bashlib
yarn add solid-bashlib
bun add solid-bashlib
```

Provides the command `sld`.

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.5 |
| Published | 2025-05-27 |
| First published | 2022-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 19 |
| Unpacked size | 10.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | miel_vds, dexagod |

## Links

- npm: https://www.npmjs.com/package/solid-bashlib
- npm.io page: https://npm.io/package/solid-bashlib

## Dependencies (19)

- [md5](https://npm.io/package/md5.md) ^2.3.0
- [jose](https://npm.io/package/jose.md) ^4.7.0
- [open](https://npm.io/package/open.md) ^8.4.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [express](https://npm.io/package/express.md) ^4.17.3
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.4
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.11
- [commander](https://npm.io/package/commander.md) ^13.0.0
- [cli-select](https://npm.io/package/cli-select.md) ^1.1.2
- [jwt-decode](https://npm.io/package/jwt-decode.md) ^3.1.2
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.35
- [cli-columns](https://npm.io/package/cli-columns.md) ^4.0.0
- [cross-fetch](https://npm.io/package/cross-fetch.md) ^3.1.5
- [form-urlencoded](https://npm.io/package/form-urlencoded.md) ^6.0.6
- [http-link-header](https://npm.io/package/http-link-header.md) ^1.0.4
- [set-cookie-parser](https://npm.io/package/set-cookie-parser.md) ^2.4.8
- [@inrupt/solid-client](https://npm.io/package/@inrupt/solid-client.md) 1.26.0
- [@comunica/query-sparql](https://npm.io/package/@comunica/query-sparql.md) ^2.1.0
- [@inrupt/solid-client-authn-node](https://npm.io/package/@inrupt/solid-client-authn-node.md) ^1.14.0

## Recent versions

- 0.6.5 (latest) — 2025-05-27
- 0.6.4 — 2025-04-11
- 0.6.3 — 2025-03-24
- 0.6.2 — 2025-03-19
- 0.6.1 — 2025-03-10
- 0.6.0 — 2025-01-08
- 0.5.5 — 2025-01-07
- 0.5.4 — 2025-01-07
- 0.5.3 — 2025-01-07
- 0.5.2 — 2025-01-07
- 0.5.1 — 2025-01-07
- 0.5.0 — 2025-01-07
- 0.3.5 — 2023-04-26
- 0.3.4 — 2023-04-14
- 0.3.3 — 2023-04-14
- … 8 more at https://npm.io/package/solid-bashlib/versions

## README

# Bashlib

**For [documentation](https://solidlabresearch.github.io/Bashlib/documentation/overview/) and a [tutorial](https://solidlabresearch.github.io/Bashlib/tutorial/),
please visit the [Bashlib Website](https://solidlabresearch.github.io/Bashlib/).**


The Bashlib-solid library provides a set of functions for interacting with Solid environments from Node.JS and the CLI. 
The aim is to provide shell-like functionality to facility the use of and development for the Solid ecosystem with a low requirement of specific knowledge of Solid and LDP. 

This library makes use of the [Developer tools by inrupt for Solid](https://docs.inrupt.com/developer-tools/javascript/client-libraries/using-libraries/) to support authorization, authentication and resource loading.
To support querying requirements, this library makes use of the [Comunica Query engine](https://comunica.dev/).

### Bashlib features in progress

- [X] Improve token management
- [X] Improve session management
- [X] Handle metadata
- [ ] Handling multiple pods for a given WebID (pim:storage)
- [X] multi parameter removes: rm file1 file2 file3
- [ ] Fixing session refresh. Current implementation can have time-out isssues with longer commands.
- [ ] Make sure discovery of pim:storage and ldp:inbox are according to spec!
- [X] Resource verification on edit (compare before / after hash and notify if something may have changed)
- [ ] Write concrete test cases and spin up local pod server to test
- [ ] Improve consistency of internal logging
- [ ] Improve consistency of exported Javascript interface
- [ ] Add WebID parameter to force using specific webid
- [ ] Add output parameter to log to specified file
- [ ] Improve error handling messaging
- [X] npm release
- [ ] Refactor to use components.js for dynamic extension with new utilities

---
_Source: https://npm.io/package/solid-bashlib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
