Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-driver-scripts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-driver-scripts

Get the entry points from a config or found within a directory

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source
get-driver-scripts

Gets the entry point filepaths to an application from a build configuration or by finding them about a directory.

npm install get-driver-scripts

Usage

var getDrivers = require('get-driver-scripts');

getDrivers({
  directory: 'path/to/my/js',
  success: function(err, drivers) {

  }
})
Optional properties:
  • exclusions: a list of (sub)directory names to exclude from the search
  • buildConfig: a RequireJS build configuration that contains a list of modules
  • This config will be parsed and you'll get back the filepaths of those modules
  • config: a RequireJS configuration that lists aliased paths.
  • This is necessary when you don't supply a build config and want the plugin to find all of the driver scripts.
  • Aliased paths need to be resolved to real filepaths during the search

Keywords

FAQs

Package last updated on 22 Dec 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