npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mpc

v0.3.2

Published

Multi-Part Components Parser

Downloads

11

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

  1. Check out this package from GitHub:

    $ git clone https://github.com/emilis/mpc
  2. Open examples directory:

    $ cd mpc/examples/
  3. 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.

  4. 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.