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