@esutils/process
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

A process library that implemented in typescript

This process library can be used by es module, commonjs module and typescript module.

Examples

Usage in typescript module, file with .ts extension

import { exec } from '@esutils/process';

async function demo() {
  const result = await exec('node', ['--version']);
  const versionString = result.stdout.toString('utf-8');
  console.log(versionString);
}

demo();

Package Sidebar

Install

npm i @esutils/process

Weekly Downloads

7

Version

0.0.2

License

MIT

Unpacked Size

14.3 kB

Total Files

25

Last publish

Collaborators

  • lygstate