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

vpm-package

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

vpm-package

vpm打包模块,解压与压缩

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

#vpm-package VPM打包模块
GLOB

API

var package = require('vpm-package');

/**
 * 打包文件
 * @param   {String}   pattern  glob pattern
 * @param   {String}   target   压缩包目标地址
 * @param   {Object}   options  glob options
 * @param   {Function} callback 解压完成后回调
 * @example package.zip('./folder/*.js', './folder.zip', {ignore: ['./node_modules/**']}, cb)
 */
package.zip(pattern, target, [options], callback)

/**
 * 解压文件
 * @param   {String}   src      压缩包地址
 * @param   {String}   target   解压目标地址
 * @param   {Function} callback 解压完成后回调
 * @example package.unzip('./folder.zip', './folder', cb)
 */
package.unzip(src, target, callback)

Filter Example


package.zip('/Users/gavinning/Documents/test', '/Users/gavinning/Documents/test.zip', ['**/node_modules/**'], function(err){
	console.log(arguments)
})

Keywords

vpm

FAQs

Package last updated on 07 Jul 2016

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