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

node-import-resolver

Imports a require or import style file from the local project or node modules
WesleyLuk90
0.4.3 697
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

Node Import Resolver

Imports a require or import style file from the local project or node modules

To Use

Highlight a token you want to import and press ctrl-i and it will automatically search for a file with a matching name and generate the import statement and insert it at the bottom of the import list. It will autodetect the import style based on whether there are existing import/export or require statements.

Advanced

You can customize the configuration for part of your project, create a .node-import-resolverrc.yml file and its configuration will apply to all sub folders.

# Use this import style instead of detecting one
importStyle: 'require'
# Don't search for imports in any folder with these names (default: [node_modules])
ignoredFolders:
    - node_modules
    - spec
# Start searching for imports in this folder, relative to this configuration file
rootFolder: ../../

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