1.0.1 • Published 7 years ago

npm-tar v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

npm-tar

A Packer for npm module with npm-pack specs tar bundle. inspired by npm-pack

Author: Allex Wang (allex.wxn@gmail.com)

Usage

// promisify
const tarPack = BB.promisify(require('npm-tar').pack)

const target = 'foo.tgz'
const pkg = require('./package.json')

tarPack(target, dir, pkg)
  .then(() => {
    // done
  })