Socket
Socket
Sign inDemoInstall

vendorman

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vendorman

Helper for common vendors in basic websites


Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

Vendorman

Vendorman is a small helper. It helps you to install dependencies for small websites and assists in providing your build tools with all paths. Install via npm install vendorman -g

  • vendorman add <packages...> Add a dependency - uses npm install
  • vendorman remove <packages...> Remove a dependency - uses npm remove
  • vendorman list List dependencies
  • vendorman file <package> <files...> Adds or deletes (-d) the given filepaths from the given package

Why?

Small websites often need standard libraries like jQuery. Integrating these in your build task can be tedious. Vendorman provies an easy to use command line interface to integrate these dependencies in you build task.

vendorman gives me the wrong files

Vendorman by default returns the main package file. For basic frontend-vendors this is usally the right one. Filepaths can be added or removed with the vendorman file <package> <files...> command.

Use in a build task

const vendorman = require('vendorman');

// Returns an array with all vendor files
vendorman.all();

// Returns the vendor files of the given package
vendorman.package('jquery');

Example: gulp

const gulp = require('gulp');
const vendorman = require('vendorman');
 
gulp.task('vendor', function() {
  return gulp.src(vendorman.all())
    .pipe(gulp.dest('./vendors/'));
});

FAQs

Package last updated on 01 Sep 2018

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