![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
module-lookup-amd
Advanced tools
Readme
Resolve AMD dependency paths to an absolute path on the filesystem
This module takes in a partial and synchronously gives back its absolute path on the filesystem.
I built this for Dependents' jump to dependency feature that lets you click on a module name and open the relevant file.
npm install module-lookup-amd
const lookup = require('module-lookup-amd');
const realPath = lookup({
partial: 'someModule',
filename: 'file/containing/partial',
directory: 'path/to/all/js/files', // optional
config: 'path/to/my/requirejs/config', // optional
fileSystem: {} // optional
});
partial
: the dependency that you want to lookupfilename
: the path of the file that contains the dependency (i.e., parent module)directory
: Used to resolve files if you're not using a requirejs configconfig
: the path to your RequireJS configuration file
config
. You are then required to provide a directory
argument which is assumed to be the location where your config would have been.fileSystem
: An alternative fs
implementation to use for filesystem interactions. Defaults to Node.js's fs
implementation if not supplied.Assumes a global -g
installation
lookup-amd -c path/to/my/config.js -f path/to/file/containing/dependency -d path/containing/all/files my/dependency/name
FAQs
Resolve aliased dependency paths using a RequireJS config
The npm package module-lookup-amd receives a total of 644,534 weekly downloads. As such, module-lookup-amd popularity was classified as popular.
We found that module-lookup-amd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.