{"_id":"@anyone-developer/anyone-validate-xml","_rev":"3-b001ae99a29f9dafecac4fa786c90d69","name":"@anyone-developer/anyone-validate-xml","dist-tags":{"latest":"0.9.2"},"versions":{"0.9.0":{"name":"@anyone-developer/anyone-validate-xml","version":"0.9.0","description":"This action helps you to validate XML syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.","main":"index.ts","types":"index.d.ts","scripts":{"test":"ts-node test.ts","xo":"xo","xo-fix":"xo --fix","build":"npm run build-index && npm run build-action && npm run build-cli && npm run build-win && npm run build-macos && npm run build-linux","build-index":"ncc build index.ts -o dist/index -m -s --license LICENSE","build-action":"ncc build action.ts -o dist/action -m -s --license LICENSE","build-cli":"ncc build cli.ts -o dist/cli -m -s --license LICENSE","build-win":"pkg dist/cli/index.js -t node12-win-x64 -o build/release/anyone-validate-xml-win","build-macos":"pkg dist/cli/index.js -t node12-macos-x64 -o build/release/anyone-validate-xml-macos","build-linux":"pkg dist/cli/index.js -t node12-linux-x64 -o build/release/anyone-validate-xml-linux"},"repository":{"type":"git","url":"git://github.com/anyone-developer/anyone-validate-xml.git"},"keywords":["cli","anyone-validate-xml","anyone-developer","xml","xml-formatter","formatter","validate","validation"],"author":{"name":"Zhang Nan","url":"zhang_nan_163@163.com"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/anyone-developer/anyone-validate-xml/issues"},"publishConfig":{"registry":"https://npm.pkg.github.com/"},"homepage":"https://github.com/anyone-developer/anyone-validate-xml#readme","dependencies":{"args":"^5.0.1","beautify":"0.0.8","chalk":"^4.1.0","fast-xml-parser":"^3.17.4","rrdir":"^8.2.0","@actions/core":"^1.2.6"},"optionalDependencies":{"@actions/core":"^1.2.6"},"directories":{"doc":"docs"},"devDependencies":{"@types/args":"^3.0.0","@types/beautify":"0.0.0","@types/rrdir":"^8.2.1","@vercel/ncc":"^0.25.1","pkg":"^4.4.9","ts-node":"^9.0.0","typescript":"^4.0.5","xo":"^0.34.2"},"xo":{"rules":{"prefer-promise-reject-errors":0,"prefer-optional-chain":0,"@typescript-eslint/restrict-template-expressions":0,"unicorn/no-reduce":0}},"gitHead":"8469dc6cca9e1b1b5047311ccb2c3c051b268b7a","_id":"@anyone-developer/anyone-validate-xml@0.9.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hH147zpL4i5tvd6iLoYDddhZplI7ZcOpOy/Ka3ZTktst1gu8m2J8w/tk8xSxnRDkqyfFNue/SPNTfx8wg7SlPg==","shasum":"9500079517f4eebb8d680bcfff550789dc372612","tarball":"https://registry.npmjs.org/@anyone-developer/anyone-validate-xml/-/anyone-validate-xml-0.9.0.tgz","fileCount":8,"unpackedSize":44722,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsfgSCRA9TVsSAnZWagAAEdcQAKGA28uMsOjx84ug8tj1\nUpsRypoU5BUTsmqFX2jPwkbsxaStd4D6oGp4ZGg9Sv2KY3d1h6l2PRyRdbWH\n2s+7B2tuc2quH2dqWk2M3ko2EO/EG/+OBtnIoIiQ56waiVwGx6KMurBlgIJR\nHB3DhpGnwEsL0PB16zzO2vibM7LaSAQ0nMbE4ZG36ArSEqpoNgoheIhLRMot\nqU1yGSACe2AVDC3YAg1A0ziH/lV3pirFubpqRZ6tLzNgEByivqUR0WM7/njE\nNjLiCzafWe3rPN3BrtvdNAGAmor1Zopt6OL2l93IYtIsOGikkH3Dtk97Q2Ac\nJWoVQhsOdA7L0f/FCZp5dEgZfFwSVosMnzPII63woNimTTSL2qgE9OPhDfuP\n6rmYSc6y0pG9R1FbWNQxtJ8orQzxjP0aZAYv5FLVutgNqGp3EVQw05TfmXiZ\nDxV5ks6yRRvauF8zrXtO1fe50NKwQQt9yGkgBW0BgbOfS2NRlXV1+CNGxA3v\nm4nHLkVuwneqQbIz3v1WZz0AkG5rzhVHHOCI7jEre9iG5+eYcU4K8ajxfeOZ\n83NrV0j1F5x6hlmxoyE020DEUO35L5eyWngxPo3Lxi8N+BTTsFJ12TmJUZBP\nWnsNkyfe9CtsC2rAqd1D8O8nJyvmZmBVB1gh9oRPEYS5YpsJBYdFHfj1BM1U\njVwn\r\n=LtBY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCybhBI2rxgmLBnuqwAUIpKMfL/fKjxJjtGRR4p5u3q+AIgNHyCe/s1hMdjoSjDDFrTOFM/wyPGTRTolXNb2Upl4qs="}]},"_npmUser":{"name":"edward.zhang","email":"zhang_nan_163@163.com"},"maintainers":[{"name":"edward.zhang","email":"zhang_nan_163@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/anyone-validate-xml_0.9.0_1605498897488_0.6108890126587068"},"_hasShrinkwrap":false},"0.9.1":{"name":"@anyone-developer/anyone-validate-xml","version":"0.9.1","description":"This action helps you to validate XML syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.","main":"index.ts","types":"index.d.ts","scripts":{"test":"ts-node test.ts","xo":"xo","xo-fix":"xo --fix","build":"npm run build-index && npm run build-action && npm run build-cli && npm run build-win && npm run build-macos && npm run build-linux","build-index":"ncc build index.ts -o dist/index -m -s --license LICENSE","build-action":"ncc build action.ts -o dist/action -m -s --license LICENSE","build-cli":"ncc build cli.ts -o dist/cli -m -s --license LICENSE","build-win":"pkg dist/cli/index.js -t node12-win-x64 -o build/release/anyone-validate-xml-win","build-macos":"pkg dist/cli/index.js -t node12-macos-x64 -o build/release/anyone-validate-xml-macos","build-linux":"pkg dist/cli/index.js -t node12-linux-x64 -o build/release/anyone-validate-xml-linux"},"repository":{"type":"git","url":"git://github.com/anyone-developer/anyone-validate-xml.git"},"keywords":["cli","anyone-validate-xml","anyone-developer","xml","xml-formatter","formatter","validate","validation"],"author":{"name":"Zhang Nan","url":"zhang_nan_163@163.com"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/anyone-developer/anyone-validate-xml/issues"},"publishConfig":{"registry":"https://npm.pkg.github.com/"},"homepage":"https://github.com/anyone-developer/anyone-validate-xml#readme","dependencies":{"args":"^5.0.1","beautify":"0.0.8","chalk":"^4.1.0","fast-xml-parser":"^3.17.4","rrdir":"^8.2.0","@actions/core":"^1.2.6"},"optionalDependencies":{"@actions/core":"^1.2.6"},"directories":{"doc":"docs"},"devDependencies":{"@types/args":"^3.0.0","@types/beautify":"0.0.0","@types/rrdir":"^8.2.1","@vercel/ncc":"^0.25.1","pkg":"^4.4.9","ts-node":"^9.0.0","typescript":"^4.0.5","xo":"^0.34.2"},"xo":{"rules":{"prefer-promise-reject-errors":0,"prefer-optional-chain":0,"@typescript-eslint/restrict-template-expressions":0,"unicorn/no-reduce":0}},"gitHead":"3586f20f10c7fe357bb0ef2945c55f02a0a9b754","_id":"@anyone-developer/anyone-validate-xml@0.9.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-l3f8BR6O74kKgfMhFrPLYORQhAyjIfIVP9i+kHrAX8fIxC2V7u441ipNkplZXUwLWR0kmNg5AX2EvBzkHaO1WA==","shasum":"d25c0c61e816c8ba102d5a4dbd6e0bd8368071e7","tarball":"https://registry.npmjs.org/@anyone-developer/anyone-validate-xml/-/anyone-validate-xml-0.9.1.tgz","fileCount":8,"unpackedSize":44722,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsfoYCRA9TVsSAnZWagAA0VQP/0KvGaXtIbFNghMFfZQH\ngU7JTjCuMQHjuVElko1NV/5UafHHzryq20SPZD3Q+fpbW4BTKNVnYap8Uavt\nadLa7QdU+Au0NrtY/JTGAcI9xoqpu23jo+0jsfMTQbc/nyAniB74H3pKJVT5\nq3gh5sqb36NZBsnfM7ikEs/Jidbz8UFfG70gsN4oHTZFpC6EZKbe3he9OA8o\nYk5NaV3WL/ae9Jhgg32BrxJ09QKaHO7cJjWkI2eeb1mviXOLc0otM824Q9kA\nGimkPsyCA6QSYYb4PStaq6wggJHQech794m2/8J9tn62gDYvkfZ3+L9w5dt9\nPSXkLQ7MpbvQLbwxCpuWiQROvgoQOVhb8tdNoLYVXhN53aTXQv4DCE8ZvxUZ\npm2z23I4JEPhhuPaDjwJbhKGz+TOll2kDc/euCY0gywfhJV5fZMz7zU3sqnf\nIBdtx2xzXr7pFDOIamgBA7ZZBXQDeHkryn0q5fSmsK6wLQc0tGjXk83IFxSY\nXlhIbFi42SB78KJd9MTl5IWez6hQXGrdsiMmM4YRrJ3omLwvJtHMiH3J0J2D\n/7Hk0sndvuaYUJhap6usPZVX3ewidUQaAHhc89rxuU3I3rZLq3thJIHGSx0q\noyj0/AidRxBhlrsFsG5LDCnhnQmE9fRgNCczWW86maH4hDqy9jmXAu3YwRRX\naz7S\r\n=0qHe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBfTOzIZfMPXQKeSPZxgCyJZMiOJ1tDX06zX6NM4CTZQIhAJnKSyKIb+cXB9Co5EnZiOlMEE1D1zrdYONJ9DwsKPvB"}]},"_npmUser":{"name":"edward.zhang","email":"zhang_nan_163@163.com"},"maintainers":[{"name":"edward.zhang","email":"zhang_nan_163@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/anyone-validate-xml_0.9.1_1605499415953_0.736619198227447"},"_hasShrinkwrap":false},"0.9.2":{"name":"@anyone-developer/anyone-validate-xml","version":"0.9.2","description":"This action helps you to validate XML syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.","main":"index.ts","types":"index.d.ts","scripts":{"test":"ts-node test.ts","xo":"xo","xo-fix":"xo --fix","build":"npm run build-index && npm run build-action && npm run build-cli && npm run build-win && npm run build-macos && npm run build-linux","build-index":"ncc build index.ts -o dist/index -m -s --license LICENSE","build-action":"ncc build action.ts -o dist/action -m -s --license LICENSE","build-cli":"ncc build bin/cli.js -o dist/cli -m -s --license LICENSE","build-win":"pkg dist/cli/index.js -t node12-win-x64 -o build/release/anyone-validate-xml-win","build-macos":"pkg dist/cli/index.js -t node12-macos-x64 -o build/release/anyone-validate-xml-macos","build-linux":"pkg dist/cli/index.js -t node12-linux-x64 -o build/release/anyone-validate-xml-linux"},"bin":{"anyone-validate-xml":"bin/cli.js","avx":"bin/cli.js"},"repository":{"type":"git","url":"git://github.com/anyone-developer/anyone-validate-xml.git"},"keywords":["cli","anyone-validate-xml","anyone-developer","xml","xml-formatter","formatter","validate","validation"],"author":{"name":"Zhang Nan","url":"zhang_nan_163@163.com"},"license":"GPL-3.0-or-later","bugs":{"url":"https://github.com/anyone-developer/anyone-validate-xml/issues"},"publishConfig":{"registry":"https://npm.pkg.github.com/"},"homepage":"https://github.com/anyone-developer/anyone-validate-xml#readme","dependencies":{"args":"^5.0.1","beautify":"0.0.8","chalk":"^4.1.0","fast-xml-parser":"^3.17.4","rrdir":"^8.2.0","@actions/core":"^1.2.6"},"optionalDependencies":{"@actions/core":"^1.2.6"},"directories":{"doc":"docs"},"devDependencies":{"@types/args":"^3.0.0","@types/beautify":"0.0.0","@types/rrdir":"^8.2.1","@vercel/ncc":"^0.25.1","pkg":"^4.4.9","ts-node":"^9.0.0","typescript":"^4.0.5","xo":"^0.34.2"},"xo":{"rules":{"prefer-promise-reject-errors":0,"prefer-optional-chain":0,"@typescript-eslint/restrict-template-expressions":0,"unicorn/no-reduce":0,"unicorn/import-index":0,"import/no-unassigned-import":0}},"gitHead":"acb1a8d429eaba594587a25bf977e6c554a5e72e","_id":"@anyone-developer/anyone-validate-xml@0.9.2","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-YthHQyHnrvGIAGr+yZVNRh5gcpqCeC8NN7i6OA0iTxoC/Rb9oUQZ3enA+hgvKaUM0sWJkkpuRF+/n3AytSFRJA==","shasum":"be4c6eebe883f4f773a826454b79fdbb7a874beb","tarball":"https://registry.npmjs.org/@anyone-developer/anyone-validate-xml/-/anyone-validate-xml-0.9.2.tgz","fileCount":11,"unpackedSize":46692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftKh/CRA9TVsSAnZWagAAxIQP/0yyyfiH5Ee1b7VzQqnI\n0ilMGLRjyFNkmIYHLX0v+BedZ/TrSQ+mL53/PWqnYtwWnR1NKwzL8m5td+T+\nwbQmN7iTiKwfCZmwSQoMszIqAcTOB4iJV3NRU2p0cUArK63CClGkGi0kdNKG\npU8FCkNrjJCskNlmxM5wVpOXkD5IzUL+MYywieO6xFOCTCeXeRLo+jhV/HA9\nxOOPaALdpnLJQGf4P6o5LbcpoOj7BEwUlt+/2exBV16K0r4vO9PJYWmIGU94\naKGbr49xvU+JXtR/LSvFSyX9d2y+VGSywgqspcYsE+bkyrCDebFeGt+dElp1\n0NhCAd8od8Js6Y/iE3jFK7+3dcXSWRgMIU42Ii8/2eVI4O7O8qyDFqAfTMwl\npKSy1C0ixL6Ek4GiXk4C7b35AdjZHknS2nzM0YDb1XJ2JSEBWbf8477dIUyo\nd8omME9eMvGy32tzpv32zg1cpPcJQ5rPm7+U5PXgJb06VcL1GRmg1xAhHxjI\nKXJoceAq/rXHBBwcrLAqBw5lqoxzkKxurdHG+NVamnm01eG3Qlcf8aUlpaNa\nw4nSVp1B2yP4PDNOawtbuj0q75IpqMJxI8rQEcuNVPW103MdNVKcLKyay2MI\nYQPUq65aJToxEv/fupm1seK5kNzq+XVdvVdo72Mod8SH3ebtr+e/z+I9IBII\npjBr\r\n=2MI1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE2BXGeQSq6HN40WsErQNfuzFkJaMMGyQuCepXf/qQ1DAiBlVFRJ6CLWjmOBVvp6VMMipN4kGn/wKMEfc5/5Vk7Vaw=="}]},"_npmUser":{"name":"edward.zhang","email":"zhang_nan_163@163.com"},"maintainers":[{"name":"edward.zhang","email":"zhang_nan_163@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/anyone-validate-xml_0.9.2_1605675134590_0.4316079323174702"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-16T03:54:57.220Z","0.9.0":"2020-11-16T03:54:57.626Z","modified":"2022-04-04T14:27:11.497Z","0.9.1":"2020-11-16T04:03:36.122Z","0.9.2":"2020-11-18T04:52:14.729Z"},"maintainers":[{"name":"edward.zhang","email":"zhang_nan_163@163.com"}],"description":"This action helps you to validate XML syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.","homepage":"https://github.com/anyone-developer/anyone-validate-xml#readme","keywords":["cli","anyone-validate-xml","anyone-developer","xml","xml-formatter","formatter","validate","validation"],"repository":{"type":"git","url":"git://github.com/anyone-developer/anyone-validate-xml.git"},"author":{"name":"Zhang Nan","url":"zhang_nan_163@163.com"},"bugs":{"url":"https://github.com/anyone-developer/anyone-validate-xml/issues"},"license":"GPL-3.0-or-later","readme":"# anyone-validate-xml\n\n![nightly-build](https://github.com/anyone-developer/anyone-validate-xml/workflows/nightly-build/badge.svg)\n![release-build](https://github.com/anyone-developer/anyone-validate-xml/workflows/release-build/badge.svg)\n![release-test](https://github.com/anyone-developer/anyone-validate-xml/workflows/release-test/badge.svg)\n[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B21065%2Fgit%40github.com%3Aanyone-developer%2Fanyone-validate-xml.git.svg?type=small)](https://app.fossa.com/projects/custom%2B21065%2Fgit%40github.com%3Aanyone-developer%2Fanyone-validate-xml.git?ref=badge_small)\n[![DependaBot](https://badgen.net/github/dependabot/anyone-developer/anyone-validate-xml)](https://github.com/anyone-developer/anyone-validate-xml/network/updates)\n![version](https://badgen.net/npm/v/@anyone-developer/anyone-validate-xml)\n![license](https://badgen.net/github/license/anyone-developer/anyone-validate-xml)\n[![Build Status](https://travis-ci.org/anyone-developer/anyone-validate-xml.svg?branch=main)](https://travis-ci.org/anyone-developer/anyone-validate-xml)\n[![XO code style](https://badgen.net/xo/status/chalk)](https://github.com/xojs/xo)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/anyone-developer/anyone-validate-xml.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/anyone-developer/anyone-validate-xml/alerts/)\n[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/anyone-developer/anyone-validate-xml.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/anyone-developer/anyone-validate-xml/context:javascript)\n[![DeepScan grade](https://deepscan.io/api/teams/11532/projects/14440/branches/269275/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=11532&pid=14440&bid=269275)\n[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/anyone-developer/anyone-validate-xml)\n\nThis action helps you to validate XML syntax in a specified directory. And write back with formatted content. read file recursively with specified file extensions.\n\n*If you like my module, please buy me a coffee.*\n\n*More and more tiny and useful GitHub action modules are on the way. Please donate to me. I accept a part-time job contract. if you need, please contact me: zhang_nan_163@163.com*\n\n## Inputs\n\n### `read-path`\n\n**Required** the path that you assign to read.\n\n### `ignore-files`\n\nthe files you want to ignore. split with a comma.\n\n### `ignore-directories`\n\nthe directories you want to ignore. split with a comma.\n\n### `file-extension`\n\nfile extension that you want to read. such as \"config\" or \"xml\". split with comma.\n\n## Outputs\n\n### `output`\n\nthe output of execution.\n\n## Other way usages\n\n### `From NPM for programmatic use`\n\n- create a 'demo' folder\n- **npm init** to create your nodejs package\n- copy 'sample_folder' to demo\n- **npm install anyone-validate-xml** to install module\n- create 'index.js' and copy code below:\n\n```typescript\nimport avx from '@anyone-developer/anyone-validate-xml';\n\navx(['.config', 'xml'], ['README.md'], ['c'], 'sample_folder').then(result => {\n\tconst succeed = result.filter(i => i?.formatted);\n\tconst failed = result.filter(i => i?.err);\n\n\tif (succeed?.length > 0) {\n\t\tconsole.info(`[${chalk.greenBright.bgYellowBright.bold('Succeed')}]`);\n\t\tsucceed.forEach(v => {\n\t\t\tconsole.info(chalk.greenBright(`path: ${v.path}`));\n\t\t});\n\t}\n\n\tif (succeed?.length > 0 && failed?.length > 0) {\n\t\tconsole.log(`---------😀${chalk.gray.bold('Happy Delimiter')}😀---------`);\n\t}\n\n\tif (failed?.length > 0) {\n\t\tconsole.error(`[${chalk.redBright.bgRedBright.bold('Failed')}]`);\n\t\tfailed.forEach(v => {\n\t\t\tconsole.error(chalk.greenBright(`path: ${v.path} msg: ${v.err?.message}`));\n\t\t});\n\t}\n}).catch(error => console.error(error));\n```\n\n- **node index.js** to run it\n\n### `From NPM for using as a command-line app`\n\n- **npm install -g anyone-validate-xml** to install gobally\n- **anyone-validate-xml -r 'sample_folder' -f '.config,.xml' -I \".git\" -i \"README.md\"** to use your bash to execute it.\n\n## Example usage\n\n```yml\nuses: anyone-developer/anyone-validate-xml@main\nwith:\n  file-extension: '.config,.xml'\n  ignore-files: 'README.md'\n  ignore-directories: '.git'\n  read-path: 'sample_folder'\n```\n\n## Fossa Report\n\n[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B21065%2Fgit%40github.com%3Aanyone-developer%2Fanyone-validate-xml.git.svg?type=large)](https://app.fossa.com/projects/custom%2B21065%2Fgit%40github.com%3Aanyone-developer%2Fanyone-validate-xml.git?ref=badge_large)\n\n## Donation\n\nPalPal: https://paypal.me/nzhang4\n\n<img src=\"https://raw.githubusercontent.com/anyone-developer/anyone-validate-xml/main/misc/alipay.JPG\" width=\"500\">\n\n<img src=\"https://raw.githubusercontent.com/anyone-developer/anyone-validate-xml/main/misc/webchat_pay.JPG\" width=\"500\">\n\n\n","readmeFilename":"README.md"}