Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ant-tool/atool-pack
https://github.com/ant-tool/atool-pack
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ant-tool/atool-pack
- Owner: ant-tool
- Created: 2016-04-25T14:38:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-14T08:35:59.000Z (over 8 years ago)
- Last Synced: 2024-12-08T08:35:18.772Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.