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

dependant

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

dependant

dependency manager

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Dependant

Dependant is a dependency manager for frontend JavaScript. Unlike AMD, there's no enforced format. If a library can be used with <script> tags, it works with Dependant.

Install

[sudo] npm install -g dependant

Configure

Create a file deps.json in your project root that looks something like this:

{
    "vendor": { // Third party code in here
        "base": "res", // Optional, defaults to "js"
        "packages": {
            "jquery": {},
            "underscore": {},
            "backbone" : {
                "deps": ["jquery", "underscore"] // Optional, defaults to []
            },
            "ace": {
                "path": "ace/src/ace.js" // Optional, defaults to base/name.js
            }
        }
    },
    "app": { // Your code in here
        "packages": {
            "modal": {},
            "settings": {
                "deps": ["modal"]
            },
            "toolbar": {},
            "main": {
                "deps": ["settings"]
            }
        }
    }
}

Use

Run dep > all.js from the project root. Dependant will work out what order the files need to be in, then concatenate all the files in that order into all.js. Then stick <script src="all.js"></script> into your HTML.

FAQs

Package last updated on 14 Jul 2013

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