Bug#1124601: ITP: node-supports-preserve-symlinks-flag -- Detects support for --preserve-symlinks flag in Node.js environments
Package: wnpp
Severity: wishlist
Owner: Edward Betts <edward@4angle.com>
* Package name : node-supports-preserve-symlinks-flag
Version : 1.0.0
Upstream Author : Jordan Harband <ljharb@gmail.com>
* URL : https://github.com/inspect-js/node-supports-preserve-symlinks-flag
* License : MIT
Programming Lang: Python
Description : Detects support for --preserve-symlinks flag in Node.js environments
This library determines whether the current Node.js runtime supports the
--preserve-symlinks command-line flag. Some tools and scripts rely on this
flag to control how symbolic links are handled during module resolution and
file operations.
.
The detection works by checking the capabilities of the active Node.js
interpreter at runtime. In environments such as browsers, or older Node.js
versions prior to 6.2.0, support for the flag is absent, and the library
reflects this by returning null or false. In situations where the flag is
supported, such as with newer Node.js releases, the result will indicate true.
.
Because the handling of symbolic links can impact file system operations and
module loading, knowledge of flag support is necessary for some automation,
packaging, or build tasks that execute under Node.js.
This library is a dependancy of Home Assistant, the Python smart home platform.
I plan to maintain it as part of the Home Assistant team.
Reply to: