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