process-utils
v4.0.0
Published
Utilities for process object
Downloads
3,432,306
Readme
process-utils
Utilities for Node.js process
handling
Installation
npm install process-utils
Available utilities
create-env
- Createenv
instance (object that reflectsprocess.env
interface)override-argv
- Overrideprocess.argv
temporarilyoverride-cwd
- Overrideprocess.cwd()
temporarilyoverride-env
- Overrideprocess.env
temporarilyoverride-stdout-write
&override-stderr-write
- Overrideprocess.std*.write
method temporarily- tmpdir
tmpdir
- Creates (on first call) and returns path to process specific temporary directorytmpdir/provision
- Creates and returns path to new temp directory, placed in context of process specific temporary directory
Tests
npm test