# lichenscript-fs

> ## Install

Latest version **0.2.0** (published 2022-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install lichenscript-fs
pnpm add lichenscript-fs
yarn add lichenscript-fs
bun add lichenscript-fs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-03-29 |
| First published | 2022-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vincent Chan |
| Maintainers | okcdz |

## Links

- npm: https://www.npmjs.com/package/lichenscript-fs
- Repository: https://github.com/lichenscript/lichenscript-fs
- Homepage: https://github.com/lichenscript/lichenscript-fs#readme
- Issues: https://github.com/lichenscript/lichenscript-fs/issues
- npm.io page: https://npm.io/package/lichenscript-fs

## Recent versions

- 0.2.0 (latest) — 2022-03-29
- 0.1.3 — 2022-03-13
- 0.1.2 — 2022-03-13
- 0.1.1 — 2022-03-13
- 0.1.0 — 2022-03-13
- 0.0.1 — 2022-03-11

## README

# Filesystem for LichenScript

## Install

```
npm install --save lichenscript-fs
```

## Usage

Read data from file:

```js
import fs from "lichenscript-fs";

function main() {
  const content = fs.readFileContent("/tmp/foo.txt").unwrap();
  print(content);
}
```

Write data to file:

```js
import fs from "lichenscript-fs";

function main() {
  fs.writeFileContent("foo.txt", "Hello World").unwrap();
}
```

Unlink a file:

```js
import fs from "lichenscript-fs";

function main() {
  fs.unlink("foo.txt").unwrap();
}
```

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