0.2.0 • Published 2 years ago

lichenscript-fs v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Filesystem for LichenScript

Install

npm install --save lichenscript-fs

Usage

Read data from file:

import fs from "lichenscript-fs";

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

Write data to file:

import fs from "lichenscript-fs";

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

Unlink a file:

import fs from "lichenscript-fs";

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

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago