{"id":13862666,"url":"https://github.com/Galooshi/emacs-import-js","last_synced_at":"2025-07-14T13:31:52.010Z","repository":{"id":43859309,"uuid":"56029614","full_name":"Galooshi/emacs-import-js","owner":"Galooshi","description":"Emacs plugin for ImportJS","archived":false,"fork":false,"pushed_at":"2022-08-19T21:05:53.000Z","size":25,"stargazers_count":40,"open_issues_count":6,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-17T14:52:48.005Z","etag":null,"topics":["emacs","emacs-plugin","importjs","javascript"],"latest_commit_sha":null,"homepage":"","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/Galooshi.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":"2016-04-12T03:59:39.000Z","updated_at":"2024-05-30T20:45:01.000Z","dependencies_parsed_at":"2022-09-06T12:14:36.006Z","dependency_job_id":null,"html_url":"https://github.com/Galooshi/emacs-import-js","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/Galooshi%2Femacs-import-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Galooshi%2Femacs-import-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Galooshi%2Femacs-import-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Galooshi%2Femacs-import-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Galooshi","download_url":"https://codeload.github.com/Galooshi/emacs-import-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225980898,"owners_count":17554919,"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","emacs-plugin","importjs","javascript"],"created_at":"2024-08-05T06:01:49.678Z","updated_at":"2024-11-22T23:30:20.043Z","avatar_url":"https://github.com/Galooshi.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"[![MELPA](http://melpa.org/packages/import-js-badge.svg)](http://melpa.org/#/import-js)\n\n# Running ImportJS in Emacs\n\n1. Install the `importjs` binary:\n  * `npm install import-js -g`\n2. Configure ImportJS\n  * See [Configuration](README.md#configuration)\n3. Install import-js.el for Emacs\n  * Install via [MELPA](https://melpa.org/#/import-js)\n  * Alternatively, Copy plugins/import-js.el into your Emacs load-path and add\n    `(require 'import-js)` to your config. You will also need to install\n    [grizzl](https://github.com/grizzl/grizzl)\n4. Run the import-js daemon\n  * `(M-x) run-import-js`\n  * The daemon will use watchman if installed to improve performance\n5. Import a file!\n  * You can use something like `(M-x) import-js-import` with your cursor over\n    the desired module\n  * It will be helpful to bind `import-js-import` to an easy-to-use binding,\n    such as:\n\n    ```\n    (define-prefix-command 'my-keymap)\n    (global-set-key (kbd \"s-a\") 'my-keymap)\n    (define-key my-keymap (kbd \"a u\") 'import-js-import)\n    ```\n6. Go directly to a file\n  * The ImportJS goto interface allows us to jump to a package\n  * `(M-x) import-js-goto` will jump to the appropriate file found by ImportJS\n  * This should also be bound to something useful:\n    `(global-set-key (kbd \"\u003cf4\u003e\") 'import-js-goto)`\n7. Fix your imports\n  * Optionally, you can configure ImportJS to fix your imports for you, adding\n    unknown variables and removing unused imports. ImportJS uses eslint to find\n    these variables.\n  * `eslint` must be in your PATH.\n  * eslint plugins must be installed for that specific version of eslint (if\n    eslint is a global eslint, you may need to install the plugins globally)\n  * Run with `(M-x) import-js-fix`\n  * You can also configure `import-js-fix` to run on save:\n    `(add-hook 'after-save-hook 'import-js-fix)`\n\n# Note on Node v6.1.0\n\nI've had issues running import-js in Emacs on Node v6.1.0. Node \u003e= v6.2.0 seems\nto work as expected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGalooshi%2Femacs-import-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGalooshi%2Femacs-import-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGalooshi%2Femacs-import-js/lists"}