4.0.5 • Published 9 years ago
mm-packer v4.0.5
MM Packer
Goal
Minimize HTTP requests.
How it works
Inspired by Magipack.js, it concatenates any kind of files into a "pack" file coming with JSON file that specifies what files are packed, where they are in the pack bitwise and what type they are.
Requirements
- node.js
Dependencies
Installation
npm install mm-packer
Usage
CLI
$ mm-packer -s files/original -o files/packedOptions
-s, --source FILE Source directory
-o, --output FILE Output directory
-n, --name [STRING] Pack files name (Default is pack)
-k, --no-color Omit color from output
--debug Show debug information
-v, --version Display the current version
-h, --help Display help and usage detailsAPI
const packer = require("mm-packer");
const packerOptions = {
source: "files/original",
output: "files/packed",
name: "pack" // Optional,
debug: true // Optional
};
packer(packerOptions);Example
If you've just downloaded the repository, run :
$ ./bin/mm-packer.js -s files/original -o files/packedYou should see the generated files in files/packed.
You can check the pack can be correctly loaded and parsed with the demo in the folder unpacker that uses mm-unpacker.
4.0.5
9 years ago
4.0.4
9 years ago
4.0.3
9 years ago
4.0.2
9 years ago
4.0.1
9 years ago
4.0.0
9 years ago
3.0.0
10 years ago
2.0.2
10 years ago
2.0.1
10 years ago
2.0.0
10 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago
