{"library":"supports-preserve-symlinks-flag","type":"library","category":null,"description":"This package, `supports-preserve-symlinks-flag`, is a focused, lightweight utility designed to programmatically determine whether the currently executing Node.js environment supports the `--preserve-symlinks` command-line flag. Currently at version 1.0.0, this package is highly stable and is likely in a maintenance-only mode, with new releases being infrequent unless Node.js introduces significant changes to its symlink resolution mechanisms or CLI flag behavior. Its core differentiation lies in its single-purpose simplicity, providing a direct boolean value (or `null` when executed in a browser environment) indicating support, without relying on any external dependencies. This functionality is crucial for developers needing to adapt application behavior or build processes based on the specific symlink resolution capabilities of the Node.js runtime, especially when deploying across diverse environments that might include older Node.js versions (specifically those prior to v6.2) where this flag was not available. It serves as a reliable check for ensuring compatibility and correct operation of file system-dependent logic.","language":"javascript","status":"maintenance","version":"1.0.0","tags":["javascript","node","flag","symlink","symlinks","preserve-symlinks"],"last_verified":"Wed May 27","install":[{"cmd":"npm install supports-preserve-symlinks-flag","imports":["const supportsPreserveSymlinks = require('node-supports-preserve-symlinks-flag');","import supportsPreserveSymlinks from 'node-supports-preserve-symlinks-flag';","import * as supportsPreserveSymlinksModule from 'node-supports-preserve-symlinks-flag';\nconst supportsPreserveSymlinks = supportsPreserveSymlinksModule.default || supportsPreserveSymlinksModule;"]},{"cmd":"yarn add supports-preserve-symlinks-flag","imports":[]},{"cmd":"pnpm add supports-preserve-symlinks-flag","imports":[]}],"homepage":null,"github":"https://github.com/inspect-js/node-supports-preserve-symlinks-flag","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/supports-preserve-symlinks-flag","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/supports-preserve-symlinks-flag/compatibility"}}