tree: 036484a76afa94d88aa36de9c007dc894d292b44 [path history] [tgz]
  1. .eslintrc
  2. .nycrc
  3. browser.js
  4. CHANGELOG.md
  5. index.js
  6. LICENSE
  7. package.json
  8. README.md
node_modules/supports-preserve-symlinks-flag/README.md

node-supports-preserve-symlinks-flag Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Determine if the current node version supports the --preserve-symlinks flag.

Example

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+

Tests

Simply clone the repo, npm install, and run npm test