{"id":13491803,"url":"https://github.com/codesuki/add-node-modules-path","last_synced_at":"2025-04-05T12:31:22.559Z","repository":{"id":43087945,"uuid":"67492947","full_name":"codesuki/add-node-modules-path","owner":"codesuki","description":"Adds the node_modules/.bin directory to the buffer exec_path. E.g. support project local eslint installations.","archived":false,"fork":false,"pushed_at":"2023-03-07T06:55:06.000Z","size":14,"stargazers_count":145,"open_issues_count":6,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T03:51:15.326Z","etag":null,"topics":["emacs","exec-path","node","node-modules","path"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","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/codesuki.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-06T09:18:06.000Z","updated_at":"2025-01-07T02:38:42.000Z","dependencies_parsed_at":"2024-10-31T05:31:49.977Z","dependency_job_id":"9c3f2be2-5865-444b-98a5-19795f811655","html_url":"https://github.com/codesuki/add-node-modules-path","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesuki%2Fadd-node-modules-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesuki%2Fadd-node-modules-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesuki%2Fadd-node-modules-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesuki%2Fadd-node-modules-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesuki","download_url":"https://codeload.github.com/codesuki/add-node-modules-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247338751,"owners_count":20922994,"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":["emacs","exec-path","node","node-modules","path"],"created_at":"2024-07-31T19:01:00.363Z","updated_at":"2025-04-05T12:31:17.539Z","avatar_url":"https://github.com/codesuki.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"# add-node-modules-path\n\n[![MELPA](http://melpa.org/packages/add-node-modules-path-badge.svg)](http://melpa.org/#/add-node-modules-path)\n\nThis file provides `add-node-modules-path`, which searches\nthe current files parent directories for the `node_modules/.bin/` directory\nand adds it to the buffer local `exec-path`.\nThis allows Emacs to find project based installs of e.g. eslint.\n\n## Usage\n`M-x add-node-modules-path`\n\nTo automatically run it when opening a new buffer:\n(Choose depending on your favorite mode.)\n\n```\n(eval-after-load 'js-mode\n  '(add-hook 'js-mode-hook #'add-node-modules-path))\n```\n\n## Monorepo Support\nIn a monorepo scenario it might make sense to add multiple directories.\nTo achieve this, additional commands can be specified:\n\n```\n(use-package add-node-modules-path\n  :custom\n  (add-node-modules-path-command '(\"pnpm bin\" \"pnpm bin -w\"))) \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesuki%2Fadd-node-modules-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesuki%2Fadd-node-modules-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesuki%2Fadd-node-modules-path/lists"}