{"name":"@zeit/ncc","version":"0.1.3-webpack","dependencies":{"arg":"^2.0.0","@webassemblyjs/ast":"1.7.11","@webassemblyjs/helper-module-context":"1.7.11","@webassemblyjs/wasm-edit":"1.7.11","@webassemblyjs/wasm-parser":"1.7.11","acorn":"^5.6.2","acorn-dynamic-import":"^3.0.0","ajv":"^6.1.0","ajv-keywords":"^3.1.0","chrome-trace-event":"^1.0.0","enhanced-resolve":"^4.1.0","eslint-scope":"^4.0.0","json-parse-better-errors":"^1.0.2","loader-runner":"^2.3.0","loader-utils":"^1.1.0","memory-fs":"~0.4.1","micromatch":"^3.1.8","mkdirp":"~0.5.0","neo-async":"^2.5.0","node-libs-browser":"^2.0.0","schema-utils":"^0.4.4","tapable":"^1.1.0","uglifyjs-webpack-plugin":"^1.2.4","webpack-sources":"^1.3.0"},"license":"MIT","main":"index.js","bin":{"ncc":"./cli.js"},"scripts":{"test":"node test","prepublish":"npm test"},"devDependencies":{"@sentry/node":"^4.3.0","auth0":"^2.14.0","aws-sdk":"^2.356.0","axios":"^0.18.0","fontkit":"^1.7.7","request":"^2.88.0","the-answer":"^1.0.0","twilio":"^3.23.2"},"gitHead":"8fd8234c0801b6976b25217088ae4976afc7d681","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","bundleDependencies":["@webassemblyjs/ast","@webassemblyjs/helper-module-context","@webassemblyjs/wasm-edit","@webassemblyjs/wasm-parser","acorn","acorn-dynamic-import","ajv","ajv-keywords","chrome-trace-event","enhanced-resolve","eslint-scope","json-parse-better-errors","loader-runner","loader-utils","memory-fs","micromatch","mkdirp","neo-async","node-libs-browser","schema-utils","tapable","uglifyjs-webpack-plugin","webpack-sources"],"_id":"@zeit/ncc@0.1.3-webpack","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"rauchg","email":"rauchg@gmail.com"},"dist":{"integrity":"sha512-1Zz1zWvEcbuqI1+i/xubs90L/vJ5IWzeMe2/FrZSpyNtuXqiyd2b6Eq7Tmy5KFg2nQIbjvmuZPJVD8SCT+Cjng==","shasum":"c726e79b3562aa3be923628ee97be9351192b52a","tarball":"http://registry-npm.ywwl.com/@zeit/ncc/download/@zeit/ncc-0.1.3-webpack.tgz","fileCount":2862,"unpackedSize":13554623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7c+aCRA9TVsSAnZWagAAb9MQAJj1z3UGbTUpWfJQKSab\nwq+AliO/8FooM5agZuKRjEppVHr3Ly7t+W6asooMzVdOmJETjWeLTvHfkNga\npLMeqIpOfOU4yaes0k+UIuRHHAU83zOD0hvJYc/jcVJmb5a7BtvrUbgM6SlY\nDozDSQLBfpAvnxl9SgJlGw/9MZyfj1/TGIQVA1hrpi8QvlY+dmnsZbR5gSGV\n1hokA5QNdfuY3dkNW7oGFexroKoXu0D4/UVK9wfZheby4KSInbK7YaH6tJBd\n6w0h7N8RylBLZoCwsdiyihmyBSR7UmDR2UN953bf1+l+GxhEGqoJnKr+cJRO\nYq8zaHe/EDZqOKqp02TGKD601jH2X95dK6wEYyNM9Yf+unnBNoZonbQvLr9P\n4sxNYHjeZfyhWlaz9DwQxjk+ZtS4by/RqOTijT9sata1QRqR3RqBhEq4uvBn\nSn5u+xTyycoubQUoE59t3njxeLAgDHBDtNZLkY7skibfx+Ha9o/P6FY3pxdX\n/3n2zzSnkLzAoPJTD0npGZIgwqM0k2YM+TPucOADzs/zCKS6fzhJzaagWXJ4\nobFq3T1AhJmdjGVkVOKYJeQu7er1yYekLYVm/hoBqDVbbuxLiU4D6sOVk3zj\nm8YhrxgkZZ1fqy6bNZORvZc4OENblBISrJbqeN1U4QkRcW0MW3KGGQ/vsoWK\nOv8P\r\n=nVO6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGBpRn4gc8UNvSJ7lIXfswIYJCuaFfJkeYlP1EY+IfofAiEA1HK0QaZ0I/88vg9s/axdbhGk7yCNrMqZLjlpKbo8ZIU="}],"size":3279319,"noattachment":false,"key":"/@zeit/ncc/-/@zeit/ncc-0.1.3-webpack.tgz"},"maintainers":[{"email":"arunoda.susiripala@gmail.com","name":"arunoda"},{"email":"thecodetheory@gmail.com","name":"codetheory"},{"email":"fivepointseven@icloud.com","name":"fivepointseven"},{"email":"guybedford@gmail.com","name":"guybedford"},{"email":"hharnisc@gmail.com","name":"hharnisc"},{"email":"hello@evilrabb.it","name":"iamevilrabbit"},{"email":"igor@klopov.com","name":"igorklopov"},{"email":"jamo@isotalo.fi","name":"jamo"},{"email":"javier.velasco86@gmail.com","name":"javivelasco"},{"email":"joecohenr@gmail.com","name":"joecohens"},{"email":"leo@zeit.co","name":"leo"},{"email":"me@matheus.top","name":"matheuss"},{"email":"naoyuki.kanezawa@gmail.com","name":"nkzawa"},{"email":"olli@zeit.co","name":"olliv"},{"email":"pranay.gp@gmail.com","name":"pranaygp"},{"email":"ds303077135@gmail.com","name":"quietshu"},{"email":"rauchg@gmail.com","name":"rauchg"},{"email":"tim@timneutkens.nl","name":"timneutkens"},{"email":"nathan@tootallnate.net","name":"tootallnate"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ncc_0.1.3-webpack_1542311833643_0.25625487576897243"},"_hasShrinkwrap":false,"readme":"# ncc\n\n[![CI Status](https://github.com/zeit/ncc/workflows/CI/badge.svg)](https://github.com/zeit/ncc/actions?workflow=CI)\n[![codecov](https://codecov.io/gh/zeit/ncc/branch/master/graph/badge.svg)](https://codecov.io/gh/zeit/ncc)\n\nSimple CLI for compiling a Node.js module into a single file,\ntogether with all its dependencies, gcc-style.\n\n## Motivation\n\n- Publish minimal packages to npm\n- Only ship relevant app code to serverless environments\n- Don't waste time configuring bundlers\n- Generally faster bootup time and less I/O overhead\n- Compiled language-like experience (e.g.: `go`)\n\n## Design goals\n\n- Zero configuration\n- TypeScript built-in\n- Only supports Node.js programs as input / output\n- Support all Node.js patterns and npm modules\n\n## Usage\n\n### Installation\n```bash\nnpm i -g @zeit/ncc\n```\n\n### Usage\n\n```bash\n$ ncc <cmd> <opts>\n```\nEg:\n```bash\n$ ncc build input.js -o dist\n```\n\nOutputs the Node.js compact build of `input.js` into `dist/index.js`.\n\n> Note: If the input file is using a `.cjs` extension, then so will the corresponding output file.\n> This is useful for packages that want to use `.js` files as modules in native Node.js using\n> a `\"type\": \"module\"` in the package.json file.\n\n#### Commands:\n```\n  build <input-file> [opts]\n  run <input-file> [opts]\n  cache clean|dir|size\n  help\n  version\n```\n\n#### Options:\n```\n  -o, --out [file]         Output directory for build (defaults to dist)\n  -m, --minify             Minify output\n  -C, --no-cache           Skip build cache population\n  -s, --source-map         Generate source map\n  --no-source-map-register Skip source-map-register source map support\n  -e, --external [mod]     Skip bundling 'mod'. Can be used many times\n  -q, --quiet              Disable build summaries / non-error outputs\n  -w, --watch              Start a watched build\n  --v8-cache               Emit a build using the v8 compile cache\n  --stats-out [file]       Emit webpack stats as json to the specified output file\n```\n\n### Execution Testing\n\nFor testing and debugging, a file can be built into a temporary directory and executed with full source maps support with the command:\n\n```bash\n$ ncc run input.js\n```\n\n### With TypeScript\n\nThe only requirement is to point `ncc` to `.ts` or `.tsx` files. A `tsconfig.json`\nfile is necessary. Most likely you want to indicate `es2015` support:\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"es2015\",\n    \"moduleResolution\": \"node\"\n  }\n}\n```\n\n### Package Support\n\nSome packages may need some extra options for ncc support in order to better work with the static analysis.\n\nSee [package-support.md](package-support.md) for some common packages and their usage with ncc.\n\n### Programmatically From Node.js\n\n```js\nrequire('@zeit/ncc')('/path/to/input', {\n  // provide a custom cache path or disable caching\n  cache: \"./custom/cache/path\" | false,\n  // externals to leave as requires of the build\n  externals: [\"externalpackage\"],\n  // directory outside of which never to emit assets\n  filterAssetBase: process.cwd(), // default\n  minify: false, // default\n  sourceMap: false, // default\n  sourceMapBasePrefix: '../', // default treats sources as output-relative\n  // when outputting a sourcemap, automatically include\n  // source-map-support in the output file (increases output by 32kB).\n  sourceMapRegister: true, // default\n  watch: false, // default\n  v8cache: false, // default\n  quiet: false, // default\n  debugLog: false // default\n}).then(({ code, map, assets }) => {\n  console.log(code);\n  // Assets is an object of asset file names to { source, permissions, symlinks }\n  // expected relative to the output code (if any)\n})\n```\n\nWhen `watch: true` is set, the build object is not a promise, but has the following signature:\n\n```js\n{\n  // handler re-run on each build completion\n  // watch errors are reported on \"err\"\n  handler (({ err, code, map, assets }) => { ... })\n  // handler re-run on each rebuild start\n  rebuild (() => {})\n  // close the watcher\n  void close ();\n}\n```\n\n## Caveats\n\n- Files / assets are relocated based on a [static evaluator](https://github.com/zeit/webpack-asset-relocator-loader#how-it-works). Dynamic non-statically analyzable asset loads may not work out correctly\n","publish_time":1542311833904,"_cnpm_publish_time":1542311833904,"dist-tags":{"beta":"0.19.0-beta.1","canary":"0.1.14","latest":"0.22.3"}}