{"name":"clang-format","version":"1.2.4","description":"node wrapper around clang-format","repository":{"type":"git","url":"git+ssh://git@github.com/angular/clang-format.git"},"main":"index.js","bin":{"clang-format":"index.js","git-clang-format":"bin/git-clang-format","check-clang-format":"bin/check-clang-format.js"},"scripts":{"test":"./test.sh"},"contributors":[{"name":"Alex Eagle","email":"alexeagle@google.com"},{"name":"Martin Probst","email":"martinprobst@google.com"},{"name":"Filipe Silva","email":"filipematossilva@gmail.com"},{"name":"Victor Berchet","email":"victor@suumit.com"}],"license":"Apache-2.0","dependencies":{"async":"^1.5.2","glob":"^7.0.0","resolve":"^1.1.6"},"gitHead":"93dad46363e38e87e1d0c74ad4919f7a0040127a","bugs":{"url":"https://github.com/angular/clang-format/issues"},"homepage":"https://github.com/angular/clang-format#readme","_id":"clang-format@1.2.4","_npmVersion":"6.3.0","_nodeVersion":"8.9.2","_npmUser":{"name":"angularcore","email":"angular-core+npm@google.com"},"dist":{"integrity":"sha512-sw+nrGUp3hvmANd1qF8vZPuezSYQAiXgGBiEtkXTtJnnu6b00fCqkkDIsnRKrNgg4nv6NYZE92ejvOMIXZoejw==","shasum":"4bb4b0a98180428deb093cf20982e9fc1af20b6c","tarball":"http://registry-npm.ywwl.com/clang-format/download/clang-format-1.2.4.tgz","fileCount":15,"unpackedSize":9453866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbZsBuCRA9TVsSAnZWagAABbMP/3V4Khilb+21WA1b+pr1\niDVaWcHOp5ujlgcXOcqUyjOgyshXjFimo8kgVq1tK/7ASY7fAjVfMXuVKaeU\nkRStmPupo5Xb0IddyylE2T7YGOJq4d8HzhJlUadaUICzzE8DVZtw4S4Wjm6g\nbnSdmoMbCgTnATXyTPHmzbgXRJvljSb6wg02AKQ/EPI8sgg7c94z4yM7CJwv\ng4Uw3edjeU12404VP2/6o8BAXSlzxSb/xIrSSUea3fifA99O2mWMW68N+xif\nfH02/8wD5mXKtCmL7Ktyl95BTmwqObnh0s/7YaJSi/7yj8lmo1nYKlTpa0su\n37JPSrJFPFT7Rvw5DkVJIMrYqPQrSiat3Pv6QthKK8SxTTGyFNf+0epmmMEd\nnnIncXwVkYvfwV0owJy+ZjWhIkb3JpSu6EmFZ+SP7+uHhwlYCn+1WXBtNtrY\nkvuI2R8Cz+osNMsegkd2S4d7sgq6BnMnfQ1c9lvkeIt37UJE+0yq4R/VVYqW\nz+eXNE5oELVep+jl0GUUwUWa25wrUdve/oNARgjFYmqYKTaJbOXTsm9Dn8QP\nSF0AkJDPA/kzPE+luP/39S0WDRDgVTcQXDDA+R1IG+othoSg2Kxq5hnUH8kT\nBeY9JuFIBi5CqbWP3t+U93s6B/K9AJUgOcwgUPQJFEY0dLZwTp/L/UwwW4Qo\nuHoH\r\n=YRI9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsZo6FRRHK7YPOL7blz6pXRm58FQeN+Z/IzMzzDl+boAiEAwCo1sDh6ohJStZlzTcw7Y0UqQ0DSGhqrxOK73beXkq0="}],"size":3744060,"noattachment":false,"key":"/clang-format/-/clang-format-1.2.4.tgz"},"maintainers":[{"email":"alexeagle@google.com","name":"alexeagle"},{"email":"angular-core+npm@google.com","name":"angularcore"},{"email":"martin@probst.io","name":"mprobst"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clang-format_1.2.4_1533460589544_0.6148601169519647"},"_hasShrinkwrap":false,"readme":"[![Build Status](https://github.com/angular/clang-format/actions/workflows/node.js.yml/badge.svg)](https://github.com/angular/clang-format/actions/workflows/node.js.yml)\n\n# clang-format\nnode.js module which wraps the native clang-format executable.\n\n## From the command-line:\n\n    $ npm install -g clang-format\n    $ clang-format -help\n\nIf your platform isn't yet supported, you can create the native binary from\nthe latest upstream clang sources, make sure it is stripped and optimized\n(should be about 1.4MB as of mid-2015) and send a pull request to add it.\n\n## Checking formatting\n\nEnsuring that changes to your code are properly formatted is an important part\nof your development workflow. Note that the `check-clang-format` and\n`git-clang-format` commands require Python to be globally available.\n\nWe recommend using a git pre-commit hook. You can configure this as follows:\n\n1. add a `precommit` script to your package.json file:\n\n    ```js\n    \"scripts\": {\n        \"precommit\": \"check-clang-format\"\n    }\n    ```\n\n    By default, the user gets an error instructing them to run\n    `./node_modules/.bin/git-clang-format`. You may find it more ergonomic to set\n    up a package.json script, eg.\n    `\"scripts\": { \"format\": \"git-clang-format\" }`\n\n    In this case, add a second argument to the \"precommit\" script, giving the\n    error you'd like to print for users, eg.\n\n    `\"precommit\": \"check-clang-format \\\"yarn format\\\"\"`\n\n2. Add a devDependency on the `husky` package, which will add a\n  `.git/hooks/pre-commit` script, which in turn triggers the `precommit`\n  package.json script to run whenever someone adds a commit in this repository:\n\n    ```sh\n    $ yarn add -D husky\n    ```\n\n    or\n\n    ```sh\n    npm install --save-dev husky\n    ```\n\n> Why do this in a pre-commit hook? For one thing, it's faster to run\n  `clang-format` only on the changed files, especially as the repository grows.\n  Also, this lets you upgrade `clang-format` or change your settings without\n  needing to re-format the entire repository, while still enforcing that later\n  changes follow the new style.\n\n## Globbing files\n\n    $ clang-format --glob=folder/**/*.js\n\nThis will run `clang-format` once per file result, and show the total\nformatted files at the end.\nSee [node-glob](https://github.com/isaacs/node-glob) for globbing semantics.\n\n## Compiling clang-format\n\nFor Linux, compile a statically linked MinSizeRel build:\n\n    git clone --depth=1 https://github.com/llvm/llvm-project.git\n    cd llvm-project\n    mkdir build\n    cd build\n    cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_STATIC=true -DLLVM_ENABLE_PROJECTS=clang ../llvm\n    ninja clang-format\n    strip bin/clang-format\n\nFor Mac OS X, static linking is not required.\n\n## Windows\n\nWindows snapshot builds to include in the release can be found at the\n[LLVM website](http://llvm.org/builds/).\n\nConfigure with:\n\n    cmake -G \"Visual Studio 12\" -DCMAKE_BUILD_TYPE=MinSizeRel ..\n\nIn the generated Visual Studio project, search for the `clang-format` binary in\nthe Solution Explorer window, right click and choose Build.\n","publish_time":1533460589878,"_cnpm_publish_time":1533460589878,"dist-tags":{"latest":"1.8.0"}}