New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amd-driver-scripts

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amd-driver-scripts

Get a list of entry-point, app initialization AMD modules (i.e., driver scripts) within a directory

0.1.0
Source
npm
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

node-amd-driver-scripts

Get a list of entry-point, app initialization AMD modules (i.e., driver scripts) within a directory

npm install amd-driver-scripts

Usage

Getting a list of driver scripts:

var getDriverScripts = require('amd-driver-scripts');

getDriverScripts('./js', function (drivers) {
  console.log(drivers);
});

Checking if a particular file is a driver script:

var isDriverScript = require('amd-driver-scripts').isDriverScript;

var result = isDriverScript('./js/foobar.js');

Or via a shell command to print all driver scripts to the console.

Requires npm install -g amd-driver-scripts:

amd-driver-scripts directory

Keywords

amd

FAQs

Package last updated on 08 Jun 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