https://github.com/pajaydev/lasso-unpack
https://github.com/pajaydev/lasso-unpack
build-tool bundle-analyzer lasso lasso-plugin unpack
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pajaydev/lasso-unpack
- Owner: pajaydev
- License: mit
- Created: 2018-06-02T05:50:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-26T17:11:46.000Z (over 3 years ago)
- Last Synced: 2025-02-16T13:26:41.174Z (8 months ago)
- Topics: build-tool, bundle-analyzer, lasso, lasso-plugin, unpack
- Language: JavaScript
- Size: 209 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lasso-unpack
[](https://www.npmjs.com/package/eslint-config-ajay)
[](https://www.npmjs.com/package/lasso-unpack)plugin to create manifest from the bundle created by Lasso.
Usage
========## install
```
npm install -g lasso-unpacklasso-unpack
````
or```
npm install --save-dev lasso-unpackconst parseBundle = require('./lasso-unpack');
parseBundle('lib/build.js');```
## Output
Output a `lasso-stats.json` file to the parent directory, you can check all the files and their sizes bundled by Lasso.
The lasso-stats.json will look like this :
```json
{
"type": "def",
"fileName": "src/main",
"packageName": "lasso-js-api",
"content": "{\n var add = require('/lasso-js-api$0.0.0/src/add'/*'./add'*/);\n var jquery = require('/jquery$2.2.4/dist/jquery'/*'jquery'*/);\n var Greeter = require('/lasso-js-api$0.0.0/src/Greeter.ts'/*'./Greeter.ts'*/);\n\n jquery(function () {\n $(document.body).append('2+2=' + add(2, 2));\n //console.log(greeter);\n var greeter = new Greeter(\"Ajaykumar\");\n $(document.body).append(greeter.greet());\n });\n\n}",
"version": "0.0.0",
"size": 538,
"gzipSize": 120,
"brotiSize": 122,
"path": "/lasso-js-api$0.0.0/src/main"
}
```
## Example
input and output example files provided here
https://github.com/ajay2507/lasso-unpack/tree/master/examples## Issues
If you are facing any issues or have any improvements, you can create issue here
https://github.com/ajay2507/lasso-unpack/issues## Problem
Developer should know what presents inside bundle created by Lasso. It should not be a black box. lasso-unpack solves this problem, it unpacks the bundle and shows all the files present in the bundle. It includes content and size of js. file.
License
========MIT