Socket
Socket
Sign inDemoInstall

module-lookup-amd

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-lookup-amd

Resolve aliased dependency paths using a RequireJS config


Version published
Maintainers
1
Created
Source

module-lookup-amd

Gives you the real path of (possibly) aliased modules. Otherwise, gives you back the same dependency name if it's not aliased.

npm install module-lookup-amd

Usage


var lookup = require('module-lookup-amd');

var realPath = lookup('path/to/my/config.js', 'dependency/path');

lookup(configPath, dependencyPath)

  • configPath: the path to your RequireJS configuration file
  • dependencyPath: the (potentially aliased) dependency that you want to lookup

Keywords

FAQs

Package last updated on 06 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc