0.1.2 • Published 1 year ago

electronade-os v0.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

electronade-os

It's a package for electronade that provides some feature of Node.js os class.
See electronade-os.netlify.app also.

Installation

npm install electronade-os

What Exposed

electronade: {
  os: {
    homedir: () => Promise<string>;
    platform: () => Promise<string>;
    tmpdir: () => Promise<string>;
  }
}

Usage

See electronade usage for details.

console.log(
  await electronade.os.homedir()
); // same as homedir()

console.log(
  await electronade.os.platform()
); // same as platform()

console.log(
  await electronade.os.tmpdir()
); // same as tmpdir()