包详细信息

process-utils

medikoo3.5mISC4.0.0

Utilities for process object

process, node, environment

自述文件

*nix build status Windows build status Tests coverage Transpilation status npm version

process-utils

Utilities for Node.js process handling

Installation

npm install process-utils

Available utilities

Tests

npm test

更新日志

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.0.0 (2020-11-19)

⚠ BREAKING CHANGES

  • Node.js version 10 or later is required

Features

  • tmp/provision util (0fd8259)
  • tmpdir util (1fc7f94)
  • Drop support for Node.js versions lower than v10 (5e2ad7d)

3.1.0 (2020-01-21)

Features

  • Callback support for overrdieStd* utils (8a83c69)

3.0.1 (2019-10-22)

Bug Fixes

  • Fix resolution of unset process.env vars from whitelist (6c6ce8b)

3.0.0 (2019-10-21)

Features

  • Create Env: Support asCopy, whitelist and variables options (266ead8)

BREAKING CHANGES

  • Create Env: Due to introduced options support, variables input now should be passed as { variables } option. It's no longer supported as direct first function argument

2.6.0 (2019-10-21)

Features

  • Override Env: variables option (bbc70f2)
  • createEnv util (2599d53)
  • Support initial properties in createEnv util (3e64ae9)

Tests

2.5.0 (2019-09-03)

Features

Tests

  • Improve overrideArgv tests (eded4dc)

2.4.0 (2019-09-03)

Features

2.3.1 (2019-05-30)

Bug Fixes

  • copy only if property exists (48c81ae)

2.3.0 (2019-05-28)

Features

  • 'whitelist' option for overrideEnv (22117af)

2.2.0 (2019-05-28)

Features

  • support callback in overrideEnv (19f5950)
  • Support thenable based resolution (6c02752)

2.1.0 (2019-04-17)

Features

  • asCopy option for overrideEnv (d04350c)

2.0.1 (2018-10-02)

Bug Fixes

  • ensure set and defined properties are stringified (6b94dc7), closes #1

2.0.0 (2018-09-20)

Features

  • override-env: change contract, allow to override over async calls (a15b894)
  • add overrideStdoutWrite and overrideStderrWrite utils (a487c4c)

BREAKING CHANGES

  • override-env: Handling of overrideEnv change. Instead of exposing overriden env to time of invocation of passed callback, it now returns restoreEnv function which should be called after we wish process.env to be restored. This allows to override process.env over async calls

1.1.0 (2018-05-30)

Features

  • for convience pass through callback result (f6d5beb)

1.0.0 (2018-05-30)