JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q67620F
  • License MIT

Minimal filesystem I/O helper with UTF-8 defaults

Package Exports

  • io8
  • io8/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (io8) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

io8

Canonical URL:
https://alexstevovich.com/a/io8-nodejs

Software URL:
https://midnightcitylights.com/software/io8-nodejs

Minimal filesystem I/O helper with UTF-8 defaults.


Installation

npm install io8

Example

import io8 from 'io8';

// ─── Async Operations ───

// Write a text file
await io8.write('./example.txt', 'Hello world');

// Read a file
const content = await io8.read('./example.txt');
console.log(content);
// → "Hello world"

// Copy a file
await io8.copy('./example.txt', './copy.txt');

License

Licensed under the MIT License.