symlinked
Node utility to list symlinks made by npm link
, yarn link
, or fs.link
Setup
Install via npm
or yarn
npm install symlinked
yarn add symlinked
require
var symlinked = require("symlinked")
Methods
symlinked.names(dir: ".")
get array of linked package namessymlinked.paths(dir: ".")
get array of linked package pathssymlinked.roots(dir: ".")
get array of linked package rootssymlinked.links(dir: ".")
get array of linked package linkssymlinked.deps(dir: ".")
get array of linked modules names that are also dependenciessymlinked.is(path)
test if path exists and is linkedsymlinked.read(path)
read link
Examples
Ran in package directory with said
dependency linked on both ends
symlinked.names()
symlinked.paths()
symlinked.roots()
symlinked.links()
symlinked.deps()
Webpack resolve.modules
configuration to resolve dependencies of linked dependencies
module.exports = {
resolve: {
modules: ["node_modules"].concat(symlinked.roots())
}
}