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

require-anywhere

It's cool to use NodeJS modules in Atom DevTools
  • #nodejs
  • #require
  • #atom-dev-tools
  • #external-node-modules
  • #require-external
ksxatompackages
1,253
5
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

require-anywhere

Installation

Using Atom

Just go to Settings (Ctrl+,) → Install, then search require-anywhere, and click Install

Using apm

apm install require-anywhere

Using git + apm + npm

git clone https://github.com/ksxatompackages/require-anywhere
apm link ./require-anywhere
apm develop require-anywhere ./require-anywhere
cd ./require-anywhere
npm install

Features and Usage

  • Add external node module directories to global.module.paths to allow Atom users to require any node modules they want

Some directories are added by default

In Windows

  • See also: windows.js

Include all paths that match ${left}\${mid}\${right} or ${left}\${right}, where:

  • ${left} is windows environment variable, one of: %UserProfile%, %AppData%, %ProgramFiles%, %ProgramFiles(x86)%, %ProgramFiles(x64)%, %ProgramW6432%, %HomeDrive%

  • ${mid} is one of: nodejs, nodejs\repl, npm

  • ${right} is one of: atom-node-modules, atom-dev-node-modules, node_modules, .node_modules, .node_libraries

In Linux, Mac OS

  • See also: unix.js

Include all paths that match ${left}/${right}, where:

  • ${left} is one of: ~, ~/repl, /home, /home/repl, /usr/share, /, /nodejs, /node

  • ${right} is one of: atom-node-modules, atom-dev-node-modules, node_modules, .node_modules, .node_libraries

Users can also add more paths by settings

Just go to Settings (Ctrl+,) → Packages → require-anywhere, then do something

You need to reload Atom to apply settings

License

MIT License

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