mpc
v0.3.2
Published
Multi-Part Components Parser
Downloads
14
Readme
Multi-Part Components Parser
Status: This is a work in progress. May not fit all potential use-cases. The implementation is straightforward and unoptimized for very large files, very large number of files, etc.
For full documentation see the MPC Wiki.
Installation
You will need Node.js and npm to install MPC Parser. You can get Node.js and npm here. Then run this from your command line:
$ npm install -g mpc
Quick start
Check out this package from GitHub:
$ git clone https://github.com/emilis/mpc
Open examples directory:
$ cd mpc/examples/
Check if command line utility is working by listing all
*.mpc
file parts in current examples directory:$ mpc .
You should get a list of parts inside
*.mpc
files in CSV format similar to this:/path/to/mpc/examples/alpha,requirements,/path/to/mpc/examples/alpha.mpc,22,22 /path/to/mpc/examples/alpha,partX,/path/to/mpc/examples/alpha.mpc,61,11 /path/to/mpc/examples/alpha,partY,/path/to/mpc/examples/alpha.mpc,156,12 /path/to/mpc/examples/beta,requirements,/path/to/mpc/examples/beta.mpc,82,8 /path/to/mpc/examples/beta,partX,/path/to/mpc/examples/beta.mpc,174,10 ...
For further info on using mpc from the command line see MPC CLI utility wiki page.
Check if the Node.js package is usable by running this from the examples directory:
$ node > require("mpc").parseDir( process.cwd() );
You should see an Array of component objects similar to this:
[ { name: '/home/emilis/work/mpc/examples/dir/zeta', parts: [ [Object] ] }, { name: '/home/emilis/work/mpc/examples/delta', parts: [ [Object] ] }, ...
For further introduction to using mpc in Node.js see Node.js Modules wiki page.
To see more examples see Examples wiki page.
If any of the above examples didn't work, please submit an error report.
Contributing
- Please use Github Issues for bug reporting and feature requests.
- Please keep your pull requests small and make sure they merge easily with the master branch before submitting.
- Please send any other feedback to my email: [email protected]. It is most welcome.
Copyright and License
Copyright 2014 Emilis Dambauskas [email protected].
This is free software, and you are welcome to redistribute it under certain conditions; see LICENSE.txt for details.
MPC Parser is licensed under GPL v3. Please email me if you need other licensing options.