{"name":"clang-format","version":"1.8.0","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":"bash ./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":"^3.2.3","glob":"^7.0.0","resolve":"^1.1.6"},"gitHead":"41f1d0a6dae1f04ad2476daa15d989629aea373c","bugs":{"url":"https://github.com/angular/clang-format/issues"},"homepage":"https://github.com/angular/clang-format#readme","_id":"clang-format@1.8.0","_nodeVersion":"18.0.0","_npmVersion":"8.6.0","dist":{"integrity":"sha512-pK8gzfu55/lHzIpQ1givIbWfn3eXnU7SfxqIwVgnn5jEM6j4ZJYjpFqFs4iSBPNedzRMmfjYjuQhu657WAXHXw==","shasum":"7779df1c5ce1bc8aac1b0b02b4e479191ef21d46","tarball":"http://registry-npm.ywwl.com/clang-format/download/clang-format-1.8.0.tgz","fileCount":15,"unpackedSize":8760468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT2Z4hiDZpC1WhqVY4o96KExVGAhFI1wrxvzVXCZscGQIgGyGRcp160JZbYzYT6MGcYDBUPjr6s7sNs2aytb2/xWw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJia8paACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDeg//aTkBd+OCPjmG2qyYY6yoowACUhxpVIe4l8dDut8F8eEE6J5I\r\nwRETKYJZ8p/ks/g1V0uNEo/e6g4Qob0Atn5aQ95w1pd3Rt4CVuhIRd4MlYQ4\r\n4sL1Rf9WeHZC2j0P+fVNunjY3c3FxG4jFB9+BCACauegX7MeFOnWxaekQEpG\r\n8yW7nYWYdVRPeL4HkQCEc+Unv04Xof7mzP4HHKfbskbRs8LBcfqIBP5EmJ5H\r\nI7/X997LGtSM54kMgQMOIs8l1jNTuDy+nstxQTAAIswkogErjK/gbTt/zgq8\r\ng86g6YzX2OluY27buA+PweSH2tPDEDsP+vviskcpQYAbvqzmhCuztb0DIXLe\r\n2t1H53RiHQ2y5quaQWQSA2bCnj/J5EdympZq5THTHFKyc90oB77D+MTwniur\r\n5ACDq4FI0BR4WkbRRljOoLwLiKF8qiXbuYtvTAp7uwPp9WhMP2D0fUt594YO\r\nglOQcRluKtnV9ULGTHFvAGyiuV5+z1jDayYZoeGoqiU46ULKhca+vVUVdkyS\r\nAHQxH503oJcaabMcNRGts2IBMIr54M5gDgGK80x12R6fYeK7N2jYDrcHlu+c\r\nazmds85KdSNbe4Z7xebf7xAHv+45B+cJ1nvDvAR/4gy2/wITBJI0zVCfeTT4\r\noT+GopvhdlL7jlqjLPYtwaf3G5FM6YVt+6o=\r\n=KpBR\r\n-----END PGP SIGNATURE-----\r\n","size":3428763,"noattachment":false,"key":"/clang-format/-/clang-format-1.8.0.tgz"},"_npmUser":{"name":"mprobst","email":"martin@probst.io"},"directories":{},"maintainers":[{"name":"mprobst","email":"martin@probst.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clang-format_1.8.0_1651231322119_0.6717490659421861"},"_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":1651231322333,"_cnpm_publish_time":1651231322333,"dist-tags":{"latest":"1.8.0"}}