Socket
Socket
Sign inDemoInstall

taxicab

Package Overview
Dependencies
6
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

taxicab


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

TaxiCab

A collection of helpful utilities for AMD modules

npm install -g taxicab

Usage

Supported Commands:

  1. Find all driver scripts that depend on a module
  2. How long does it take to compute the dependency trees about all modules in a directory
find-driver

Find the driver script(s) that depend on the given module

var findDriver = require('taxicab').findDriver;

findDriver({
  file:   'file/in/question',
  root:   'path/to/all/js,
  config: 'path/to/my/requirejs/config.js', // Optional
  success: function(drivers) {
    console.log(drivers);
  }
});

Shell usage:

find-driver filename root [config]

Prints:

/a.js
/b.js
time-to-trees

Get profiling data about how long it takes to generate the dependency trees for each module in a directory

var timeToTree = require('taxicab').timeToGenerateTrees;

timeToTree({
  root:   'path/to/all/js',
  success: function(profileData) {
    console.log(profileData);
  }
});

Shell usage:

time-to-tree root

Prints via (columnify):

a.js  200ms
b.js  100ms

Keywords

FAQs

Last updated on 03 Aug 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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc