Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ant-tool/atool-pack


https://github.com/ant-tool/atool-pack

Last synced: 13 days ago
JSON representation

Awesome Lists containing this project

README

        

# atool-pack

[![NPM version](https://img.shields.io/npm/v/atool-pack.svg?style=flat)](https://npmjs.org/package/atool-pack)

----

"npm pack + extract" tool

### cli:
```bash
$ npm install -g atool-pack
$ atool-pack module dir
```

eg:

```bash
$ atool-pack rcf ./
```

### api
```javascript
var pack = require("atool-pack");
pack(module, dir);
```

eg:

```javascript
pack('rcf', './').then(() => {
console.log('success');
}).catch(err => {
conole.log(err);
})
```

## License

Component is released under the MIT license.