New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

umd-ify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

umd-ify

Convert your node_modules/ into UMD files

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

umd-ify

Want to use the awesome powers of npm but can't/don't want to use browserify? Then maybe this module is for you...

Installing

Install umd-ify either locally for your project(npm i umd-ify) or global (npm i -g umd-ify).

Usage

umd-ify goes through your node_modules/ folder and packages each of your dependencies as a UMD module and puts them into a folder for you.

Just run this command in the root of your project:

umdify --dir umd_modules/

You can also define it as a script in your package.json file:

{
  "name": "my-awesome-module",
  "dependencies": {
    "browserify": "^7.0.0",
    "concat-stream": "^1.4.7",
    "minimist": "^1.1.0"
  },
  "dev-dependencies": {
    "umd-ify": "^1.0.0"
  },
  "scripts": {
    "build-dependencies": "umdify --dir umd_modules"
  }
}

API

If you want to you can also use umd-ify programatically by using its API.

It is pretty straight-forward:

var umdify = require('umd-ify')

umdify('/path/to/project', '/path/to/output/dir', function(err) {
  if(err) return console.error(err)

  console.log('Done!')
})

Tests

To execute the tests simply run npm test

Keywords

umd

FAQs

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