GitXplorerGitXplorer
b

clear-env

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
1aa14f1b782dc696bdadfa7a953434818b8c8159

[publish] Move to node-pre-gyp.

bbruce-one committed 6 years ago
Unverified
efbe9c2fb3b5a85d1523413431ee868df3098877

Version for publishing.

bbruce-one committed 6 years ago
Unverified
97ff65699a0ad5c7d5a6b78f08c5ca64ede4411b

Module to clear /proc/pid/environ.

bbruce-one committed 6 years ago

README

The README file for this repository.

Clear env

Build Status

Simple module to clear /proc/pid/environ. Also clears process.env.

Example

TEST=test node
> console.log(process.env.TEST) // test
> /[a-zA-Z0-9]/.test(fs.readFileSync(`/proc/${process.pid}/environ`, 'utf8')) // true
> require('clear-env')()
> console.log(process.env.TEST) // undefined
> console.log(process.env) // {}
> /[a-zA-Z0-9]/.test(fs.readFileSync(`/proc/${process.pid}/environ`, 'utf8')) // false