1. supports-preserve-symlinks-flag
Determine if the current node version supports the `--preserve-symlinks` flag.
supports-preserve-symlinks-flag
Package: supports-preserve-symlinks-flag
Created by: inspect-js
Last modified: Thu, 19 May 2022 01:59:54 GMT
Version: 1.0.0
License: MIT
Downloads: 155,430,053
Repository: https://github.com/inspect-js/node-supports-preserve-symlinks-flag

Install

npm install supports-preserve-symlinks-flag
yarn add supports-preserve-symlinks-flag

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code