fxl 37aa67060c 08.01demo | 5 months ago | |
---|---|---|
.. | ||
.github | 5 months ago | |
test | 5 months ago | |
.eslintrc | 5 months ago | |
.nycrc | 5 months ago | |
CHANGELOG.md | 5 months ago | |
LICENSE | 5 months ago | |
README.md | 5 months ago | |
browser.js | 5 months ago | |
index.js | 5 months ago | |
package.json | 5 months 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