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

autoinstall

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoinstall

automatically install dependencies via `require()`

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

Autoinstall

Automatically install dependencies in node.js. So you don't have to write them in your package.json, so you don't have to use dependency-check, or so do you don't have to do npm install.

Development Status

This is very hacky and uses node's undocumented internals. Thus, don't expect it to ever reach 1.0.0. Also, this all should ideally be included with node once ES6 modules are supported. But who knows when that's going to happen.

This uses child_process.execFileSync(), so is only supported in node >= v0.11.13ish.

Usage

npm i autoinstall

Autoinstall packages node.js globally. Include it first before any other require() calls.

require('autoinstall')

var express = require('express')

And you're all good!

FAQs

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

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