tmpdir.sh

Portable $TMPDIR for your shell.

Usage no npm install needed!

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

README

tmpdir.sh

Build Status NPM version NPM downloads LICENSE

Portable $TMPDIR for your shell.

Example (OSX)

echo 123 > $(. node_modules/tmpdir.sh/index)/hacker.pid

cat $TMPDIR/hacker.pid
# => 123

Example (Linux)

echo 123 > $(. node_modules/tmpdir.sh/index)/hacker.pid

cat /tmp/hacker.pid
# => 123

Installation

npm install tmpdir.sh --save

License

MIT