{"id":13659658,"url":"https://github.com/OrKoN/npm-link-shared","last_synced_at":"2025-04-24T15:30:42.032Z","repository":{"id":29769779,"uuid":"33313688","full_name":"OrKoN/npm-link-shared","owner":"OrKoN","description":"links a folder of local modules with inter-dependencies to the target directory","archived":true,"fork":false,"pushed_at":"2022-12-30T17:13:14.000Z","size":125,"stargazers_count":138,"open_issues_count":6,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-18T22:04:11.377Z","etag":null,"topics":["javascript","link","npm"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OrKoN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-02T14:38:09.000Z","updated_at":"2025-03-19T14:54:33.000Z","dependencies_parsed_at":"2023-01-14T15:37:16.846Z","dependency_job_id":null,"html_url":"https://github.com/OrKoN/npm-link-shared","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrKoN%2Fnpm-link-shared","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrKoN%2Fnpm-link-shared/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrKoN%2Fnpm-link-shared/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrKoN%2Fnpm-link-shared/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OrKoN","download_url":"https://codeload.github.com/OrKoN/npm-link-shared/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250654108,"owners_count":21465815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","link","npm"],"created_at":"2024-08-02T05:01:10.967Z","updated_at":"2025-04-24T15:30:39.538Z","avatar_url":"https://github.com/OrKoN.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# npm-link-shared\n\n[![Version](https://img.shields.io/npm/v/npm-link-shared.svg)](https://www.npmjs.com/package/npm-link-shared)\n[![Build Status](http://img.shields.io/travis/OrKoN/npm-link-shared.svg?style=flat)](https://travis-ci.org/OrKoN/npm-link-shared)\n[![Downloads](https://img.shields.io/npm/dm/npm-link-shared.svg)](https://www.npmjs.com/package/npm-link-shared)\n[![Dependencies](https://img.shields.io/david/OrKoN/npm-link-shared.svg)](https://github.com/OrKoN/npm-link-shared/blob/master/package.json#L19)\n\nInstalls a set of local node modules into a target folder using `npm link`. Links all dependencies of the local modules if they are listed in the source folder.\n\n[Blog post explaining this module](https://60devs.com/simple-way-to-manage-local-node-module-using-npm-link.html).\n\n## Installation\n\n```\nnpm install npm-link-shared -g\n```\n\n## Changelog\n\nv0.5.2 (2017-09-07) - Updated dependencies. Added package-lock.json.\n\nv0.5.1 (2017-05-19) - Support for `--include-peer` which links peer dependencies if they are defined.\n\nv0.5.0 (2017-03-29) - **BREAKING CHANGES**: The lib/api function's arguments have been revamped. The previously undocumented argument --includeDev is now --include-dev to be consistent with other arguments. We now print a warning and exit gracefully if either the shared or target directory do not exist.\n\nv0.4.0 (2017-03-13) - Support for changing executable to yarn with `--yarn`. **Use at your own risk!** `yarn link` is not yet functionally equivalent to `npm link`.\n\nv0.3.3 (2016-07-01) - Support for npm link options, removed hardcoded usage of `--production`.\n\nv0.3.0 (2016-03-25) - Support for @scope packages. For example, `@scope/my-package`.\n\nv0.2.1 (2016-01-12) - Thanks to @barroudjo, module folder names are now de-coupled from the names in the package.json. So any name can be used as a folder name.\n\nv0.2.0 (2015-10-30) - Links using `--production` flag so that devDependencies should not be installed anymore. Tests added.\n\nv0.1.6 (2015-04-20) - Removed unneeded npm dependency. Added a possibility to define [which modules to install](#define-specific-modules-to-install).\n\n## Usage\n\n```\n  npm-link-shared \u003cshared-modules-dir\u003e \u003ctarget-installation-dir\u003e [\u003cmodule1..\u003e [, \u003cmodule2..\u003e]] [--yarn] [--include-dev] [--include-peer] [--\u003cnpm-link-option\u003e [--\u003cnpm-link-option\u003e]]\n```\n\nFor example:\n\n```\n  npm-link-shared /home/user/internal_modules/ /home/user/my-project\n```\n\nThis links all modules located in the `internal_modules` directory to the `my-project` dir.\n\n### Define specific modules to install\n\n```\n  npm-link-shared /home/user/internal_modules/ /home/user/my-project my-module1 my-module2\n```\n\nThis links modules `my-module1` and `my-module2` located in the `internal_modules` directory to the `my-project` dir. Only these two modules are installed but their dependencies are resolved against the entire `internal_modules` directory.\n\n### Define options passed to npm link\n\n```\n  npm-link-shared /home/user/internal_modules/ /home/user/my-project --production\n```\n\nThis prevents installation of devDependencies of shared modules by passing the production option to npm link (npm link --production).\n\n### Use yarn instead\n\n**NOTE:** `yarn link` is currently functionally different from `npm link`, and should not be considered stable. Use at your own risk until the yarn project has stabilized.\n\n```\n  npm-link-shared /home/user/internal_modules/ /home/user/my-project --yarn\n```\n\nThis works in conjunction with all other options.\n\n### Also link devDependencies and/or peerDependencies\n\ndevDependencies:\n\n```\n  npm-link-shared /home/user/internal_modules/ /home/user/my-project --include-dev\n```\n\npeerDependencies:\n\n```\n  npm-link-shared /home/user/internal_modules/ /home/user/my-project --include-peer\n```\n\nOrdinarily, only packages found under the dependencies key in a project's `package.json` are linked. With this option, devDependencies and/or peerDependencies are also linked.\n\n## Developing\n\nTo run tests successfully, you must have both npm and yarn in your `$PATH`.\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOrKoN%2Fnpm-link-shared","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOrKoN%2Fnpm-link-shared","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOrKoN%2Fnpm-link-shared/lists"}