fxl 37aa67060c 08.01demo | vor 4 Monaten | |
---|---|---|
.. | ||
.github | vor 4 Monaten | |
test | vor 4 Monaten | |
.eslintrc | vor 4 Monaten | |
.nycrc | vor 4 Monaten | |
CHANGELOG.md | vor 4 Monaten | |
LICENSE | vor 4 Monaten | |
README.md | vor 4 Monaten | |
browser.js | vor 4 Monaten | |
index.js | vor 4 Monaten | |
package.json | vor 4 Monaten |
Determine if the current node version supports the --preserve-symlinks
flag.
var supportsPreserveSymlinks = require('node-supports-preserve-symlinks-flag');
var assert = require('assert');
assert.equal(supportsPreserveSymlinks, null); // in a browser
assert.equal(supportsPreserveSymlinks, false); // in node < v6.2
assert.equal(supportsPreserveSymlinks, true); // in node v6.2+
Simply clone the repo, npm install
, and run npm test