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

cmd-build

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

cmd-build

CMD will convert commonJS format to format

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

cmd-build Build Status

A commonJS conversion cmd tool

Install

Install using npm.

npm install cmd-build --save-dev

Usage


var FileBuild  = require('cmd-build');

var fileBuild = FileBuild({
    exportDir: "./build/",  // 输入文件目录
    exname: ".js",          // 后缀为js文件
    importFile: "",         // 输入参数:可以为js文件或者目录 
    filePrefix: "",         // define 前缀,比如说为:react, 输出为 "react/xx"
    combine: false,         // 是否合并为一个主文件,默认为false
    compress: false,        // 是否压缩,默认为false
    combineFile: './build/build.js',    // 合并后主文件名
    combineMinFile: "./build/build-min.js"  // 合并后主文件(压缩后)名
});
fileBuild.buildJs(function(){
    // 执行成功操作 TODO
});


Keywords

cmd

FAQs

Package last updated on 28 Oct 2015

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