Muqriz 48f16bfc3e initail first | il y a 4 mois | |
---|---|---|
.. | ||
.github | il y a 4 mois | |
test | il y a 4 mois | |
.eslintrc | il y a 4 mois | |
.nycrc | il y a 4 mois | |
CHANGELOG.md | il y a 4 mois | |
LICENSE | il y a 4 mois | |
README.md | il y a 4 mois | |
browser.js | il y a 4 mois | |
index.js | il y a 4 mois | |
package.json | il y a 4 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