GitXplorerGitXplorer
b

clear-env

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
5768247b2aef737836c821243d9a0c63c2b3106c

[publish] Version.

bbruce-one committed 6 years ago
Unverified
ebb809aa7bf4cb9f8ed3642be75d04e87afa8abf

Avoid name clash.

bbruce-one committed 6 years ago
Unverified
a2926e9fb2f94517626b95ebaebbcb9f4d1f9004

[publish] Version.

bbruce-one committed 6 years ago
Unverified
5c889f266ab278ee0654c36fbc700c155aea1293

Straight C rather than wrapping the C.

bbruce-one committed 6 years ago
Unverified
1c64051e3859692d891e1ad0b76cb44e850b8af0

.gitignore

bbruce-one committed 6 years ago
Unverified
1f9876ecdb57127c8deee301a338f3a622320dd9

Build status.

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