dotbin

Prepend node_modules/.bin to process.env.PATH

Usage no npm install needed!

<script type="module">
  import dotbin from 'https://cdn.skypack.dev/dotbin';
</script>

README

console.log('Path before dotbin', process.env.PATH);

require('dotbin');

console.log('Path after dotbin', process.env.PATH);

Installation

$ npm install dotbin --save

More examples

var dotbin = require('dotbin/api');

dotbin.enable();
console.log(dotbin.check(), process.env.PATH);

dotbin.disable();
console.log(dotbin.check(), process.env.PATH);