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