Bakhtina Sofya b84cb877be 1st comm | il y a 2 semaines | |
---|---|---|
.. | ||
.github | il y a 2 semaines | |
test | il y a 2 semaines | |
.eslintrc | il y a 2 semaines | |
.nycrc | il y a 2 semaines | |
CHANGELOG.md | il y a 2 semaines | |
LICENSE | il y a 2 semaines | |
README.md | il y a 2 semaines | |
browser.js | il y a 2 semaines | |
index.js | il y a 2 semaines | |
package.json | il y a 2 semaines |
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