Bakhtina Sofya b84cb877be 1st comm | 3 weeks ago | |
---|---|---|
.. | ||
.github | 3 weeks ago | |
test | 3 weeks ago | |
.eslintrc | 3 weeks ago | |
.nycrc | 3 weeks ago | |
CHANGELOG.md | 3 weeks ago | |
LICENSE | 3 weeks ago | |
README.md | 3 weeks ago | |
browser.js | 3 weeks ago | |
index.js | 3 weeks ago | |
package.json | 3 weeks ago |
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