Multithreaded tool for running node.js style code in the browser inspired by substack's Browserify.
paq implements a subset of Browserify's features with full multithreading support. For impatient people who have to deal with large codebases.
require(path.join(__dirname, 'some_module'))(or any other statically resolvable expression, like
__dirname + '/path')
hbsfyfor use with
paqcan't actually run transforms yet. Almost there!
process.envwith actual environment vars.
USAGE: paq <entry files> [options]Options:--parserTasks=<integer> The maximum number of concurrent AST parsers--requireTasks=<integer> The maximum number of concurrent requireevaluations--standalone Returns a module that exports the entryfile's export--convertBrowserifyTransform Returns a module that wraps a browserifytransform for use with paq--ignoreUnresolvableExpressions Ignores expressions in require statementsthat cannot be statically evaluated
To work on paq, you'll need these tools:
brew install xctool)
To run the tests (which require the things mentioned above) you can either run
npm test from the command line, or run the
paq-test target in Xcode.