{"_id":"js-yaml-cloudformation-schema","_rev":"1-026da51076eab8b32cc133c803cf593a","name":"js-yaml-cloudformation-schema","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"js-yaml-cloudformation-schema","version":"1.0.0","description":"Schema to allow js-yaml to process YAML formatted CloudFormation templates that use short form syntax for intrinsic functions while parsing or dumping","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js","sort-tags.json":"command -v jq >/dev/null 2>&1 &&(jq -S '' tags.json )>tags.sorted.json&&mv tags.sorted.json tags.json || { echo 'jq is not install or not in $PATH' >&2; exit 0; }"},"repository":{"type":"git","url":"git+https://github.com/danmactough/js-yaml-cloudformation-schema.git"},"keywords":["cloudformation","aws","js-yaml","yaml","parser","schema"],"author":{"name":"Dan MacTough","email":"danmactough@gmail.com"},"contributors":[{"name":"Dan MacTough","email":"danmactough@gmail.com"},{"name":"Joseph Yølk Chiocchi","email":"joe@yolk.cc"}],"license":"ISC","bugs":{"url":"https://github.com/danmactough/js-yaml-cloudformation-schema/issues"},"homepage":"https://github.com/danmactough/js-yaml-cloudformation-schema#readme","dependencies":{"js-yaml":"^3.7.0"},"devDependencies":{},"gitHead":"d5ffc57270d685014b95833115e419ed2bb63b54","_id":"js-yaml-cloudformation-schema@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-eokVVPLsjLFuuCRQWIIaE5fX7qPUNRAAmJFXSvtzUnJcdNS0ZtAPdaFcwCrTHM+owGcBR82rlpd0b6bu8pFwQA==","shasum":"427cf008284effd1b65fa749d4915ddb2faba465","tarball":"https://registry.npmjs.org/js-yaml-cloudformation-schema/-/js-yaml-cloudformation-schema-1.0.0.tgz","fileCount":10,"unpackedSize":10178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfeUqrCRA9TVsSAnZWagAATDoP/i5EStnC6OvpEAPQF6Wa\nUi21mLSZbpcZbckKFgPXSSAHZmRV+Z5x3hKDZwoiRNLDaEsBDv0PHxvOvqUu\nrcPpOYwdpEQlBcNlaxWsjH7kp/Zf5GhwtPRobwtz53zUkqMNax7eY76MqXKa\nMVovwsJ/lLvp0DKr6ZNO0ZO7pZg2oSdqwslyh/ozuosm0ivq3DpVHvjL3aVC\nwwGpxKQbwA9nv66LgWQaAwU2bN5xhbdPzKSOaaKz5pmPe0tDhugeDM+X6kJm\njr1jyzdkcbITRapE7O959rfmDY9mSpH4V0ZQbxJgHrNLH0sxAl8QispCliBo\n/Wk4inQQTM9orYdhL/ijqn6mMBz+0d+uIxIU7DZHY/SgPxInPONVd8LM7WYG\nJzaYr7DMiUezV65+4YPZHbnOdmgi2otQJpcUVspPUFZCf6hxZW69oaip511G\n933y8l5QeEXvae2glle3tXUzUietueFsnXpixLh1BxIj6P+GgUunXsikelNE\n+ncJ4Dqfx2KvxNHFmJWc01jM3Vt4LE6P1+zPioBPxJL4x43qH1z1O7wyDlpA\najouy4Cgu33DofxLrZg+QOf1Smyc827v8RdEt1UrCRJ/UlV9nsS80UlBMv6F\niedTSZT1FD8b9QAJbtod0JdI7vGrOgl0GD7i+GAhNdTkT3NpZ9J5NgYxJzGI\nfeSm\r\n=0yUq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwSw/upKes0QHmY9mzdAPL/H+L/RQw6AqBGwDcfml7CAiAmxHni/5vFrsTaDhf5K7TCg8nEzNaHiH/ALsXBTHCr0g=="}]},"maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"_npmUser":{"name":"danmactough","email":"danmactough@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/js-yaml-cloudformation-schema_1.0.0_1601784491024_0.9259075934081664"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-04T04:08:11.024Z","1.0.0":"2020-10-04T04:08:11.178Z","modified":"2022-05-06T19:52:32.727Z"},"maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"description":"Schema to allow js-yaml to process YAML formatted CloudFormation templates that use short form syntax for intrinsic functions while parsing or dumping","homepage":"https://github.com/danmactough/js-yaml-cloudformation-schema#readme","keywords":["cloudformation","aws","js-yaml","yaml","parser","schema"],"repository":{"type":"git","url":"git+https://github.com/danmactough/js-yaml-cloudformation-schema.git"},"contributors":[{"name":"Dan MacTough","email":"danmactough@gmail.com"},{"name":"Joseph Yølk Chiocchi","email":"joe@yolk.cc"}],"author":{"name":"Dan MacTough","email":"danmactough@gmail.com"},"bugs":{"url":"https://github.com/danmactough/js-yaml-cloudformation-schema/issues"},"license":"ISC","readme":"# js-yaml-cloudformation-schema [![Build Status](https://travis-ci.org/danmactough/js-yaml-cloudformation-schema.svg?branch=master)](https://travis-ci.org/danmactough/js-yaml-cloudformation-schema)\n\nSchema to allow js-yaml to process YAML formatted CloudFormation templates that use short form syntax for [intrinsic functions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html) while parsing or dumping, for example: `!Ref`, `!Base64`.\n\nSee [tags.json](./tags.json) for currently supported short form syntax for intrinsic functions, also known as [local tags](https://yaml.org/spec/1.2/spec.html#tag/local/) in the YAML spec.\n\nThis is a fork of [yyolk/cloudformation-js-yaml-schema](https://github.com/yyolk/cloudformation-js-yaml-schema) that changes the structure of the parsed JavaScript representation of the CloudFormation template to match the parsed representation of a JSON formatted CloudFormation template.\n\n## Usage\n\n```js\nconst yaml = require('js-yaml');\nconst { CLOUDFORMATION_SCHEMA } = require('js-yaml-cloudformation-schema');\n\nlet templateBody = fs.readFileSync(templatePath, 'utf8');\ntemplateBody = yaml.safeLoad(templateBody, { schema: CLOUDFORMATION_SCHEMA });\nconsole.log(JSON.stringify(templateBody, null, 2));\n\ntemplateBody = yaml.safeDump(templateBody, { schema: CLOUDFORMATION_SCHEMA });\nconsole.log(templateBody);\n```\n","readmeFilename":"README.md"}