tmpdir-polyfill
Node.js os.tmpdir polyfill for older versions of node.js.
Last updated 2 years ago by leichtgewicht .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tmpdir-polyfill 
SYNC missed versions from official npm registry.

tmpdir-polyfill NPM version NPM downloads Build Status

Node.js os.tmpdir polyfill for older versions of node.js.

Install

Install with npm:

$ npm install --save tmpdir-polyfill

Usage

var homedir = require('tmpdir-polyfill');
console.log(tmpdir());
//=> /var/folders/g2/bqbqq47d4pg7v4rqx90612m00000gn/T

Reasoning

This library is a polyfill for the node.js os.tmpdir to work consistently in older nodejs versions.

In versions of node.js newer or equal 4, os.tmpdir is used.

About

Related projects

homedir-polyfill:

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue & be kind.

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Martin Heidegger

License

Copyright © 2019, Martin Heidegger. Released under the MIT license.

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |