• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

autocomplete-js-import

Autocompletes commonjs and es6 import statements
  • #autocomplete
  • #autocomplete-plus
  • #fuzzy
  • #es6
  • #es2015
DanielGarcia-Carrillo
74,326
52
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

autocomplete-js-import

Autocomplete+ provider for JS import statements

Autocompletes ES6 or CommonJS (node) style import statements with relative file matching, full project fuzzy file matching or packages found in package.json.

By default, plugin will only allow autocompletion in the form of relative paths:

import local files screenshot

New Fuzzy matching (disabled by default)

Additional features

  • When project dependencies autocompletion is enabled, every root package.json is watched for changes
  • Autocomplete hidden (dot) files (disabled by default)
  • Automatically remove unnecessary extensions (e.g. ./index.js => ./index)

TODO / Known Issues

  • Fuzzy pattern matching doesn't work with files added/removed after project is added
  • Attempting to fuzzy search with slashes or periods inserts suggestion incorrectly
  • If it wasn't compatible with Windows before, it sure isn't now (Unix path specific code)

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by