{"_id":"@granite-elements/granite-yaml","_rev":"2-02655c0ae0a036a9216c4e3de2e37a2d","name":"@granite-elements/granite-yaml","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.0":{"description":"A set of Custom Elements to deal with YAML files","name":"@granite-elements/granite-yaml","homepage":"https://github.com/LostInBrittany/granite-yaml","repository":{"type":"git","url":"git+https://github.com/LostInBrittany/granite-yaml.git"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0","@webcomponents/webcomponentsjs":"2.0.0-beta.2"},"main":"granite-yaml-parser.js","license":"Apache-2.0","dependencies":{"@polymer/iron-ajax":"^3.0.0-pre.18","@polymer/polymer":"^3.0.0","js-yaml":"^3.12.0"},"devDependencies":{"@polymer/iron-component-page":"^3.0.0-pre.18","@polymer/iron-demo-helpers":"^3.0.0-pre.18","@polymer/iron-icon":"^3.0.0-pre.18","@polymer/iron-icons":"^3.0.0-pre.18","wct-browser-legacy":"^0.0.1-pre.11","@webcomponents/webcomponentsjs":"^2.0.0"},"version":"2.0.0","gitHead":"01ae1a1fbf200c017d7be06e0734713e0e03be1b","bugs":{"url":"https://github.com/LostInBrittany/granite-yaml/issues"},"_id":"@granite-elements/granite-yaml@2.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.9.4","_npmUser":{"name":"lostinbrittany","email":"horacio.gonzalez@gmail.com"},"dist":{"integrity":"sha512-1Om0MQyKjlVfVe302mGHr2MqId3aiON/edSSTbQ+HZ3MZVCHw6c7J/BTvDmsHdEI8BCVa7nvR/vJDF5zxOdTRg==","shasum":"c82a4bb459ed8ad5d42040baec4542c86b126510","tarball":"https://registry.npmjs.org/@granite-elements/granite-yaml/-/granite-yaml-2.0.0.tgz","fileCount":15,"unpackedSize":206033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbaY3DCRA9TVsSAnZWagAAK/wP/1YQIPW9PRkGqPzpiSik\nh42xSm7L+L5mc61897A8Db5NanErRPZuhArnYjY+GPma+uIafFKQlfxdmaF4\n5ojxmagny6H8BimP65mSRj2VDEDqp6++oKbEyu62eK1n7EMhtgJUv0RinvWW\nVpDZYJ9vGCwZHMCHoHmr/KEYBPQVfIEhF+xxqk/AJmfkw5tFUDUcBaaoaYOc\nluKVj8go77Tk8Mu64l+Cq7zl/8eylYFP52nSwsu2nIJEeSgjS+/p8zn7gJJD\npPg2ME2HMLAu8v+eYmvYcsUQQ9kU6QBpUvgeDYxQSv96/pyXXxrkz4Rlrna7\nNtGpl/JkabWfZy7xtdtPmjaK4v5NaFO7xQYS3WarGfD3If3MqNXS+0Jb7GD3\nKcVQ5/BtOoK/iYFglUE3oZ8L4aCRC7/smrb50vWFu6BDUuA4t+v9x8DxO9f1\nnVcZvBLoxxJwuJDOl58hbcZYss+oXc/KqLlZxweSm5YXhpHxKoW5FWXN/TVk\n7VQhNdoC5fEflQL1RBszH4xfmP76tE/VRq/QfvibxFVb0tLU4qZ13A4HmvoC\neML15RGqfHuhZP3U9loKeQqc9pT6CcIpNi3pWC64L6eOy96OuckrovfRS8SZ\nNWuBRqeYcw9MoyX7l9NO5cbObqbIBKegynq4RnfTHD709HgOV44u4GsaNHJK\nijDQ\r\n=awru\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHoYwoq8bCkcgMmzIha9Rg0EfwIlVrdqEDsFyFK+lQRoAiEA616XgPxB3k0aArfNQLs7Gqp0YuHOT8t5WhzbvGXgqZE="}]},"maintainers":[{"name":"lostinbrittany","email":"horacio.gonzalez@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/granite-yaml_2.0.0_1533644219912_0.8993642029925053"},"_hasShrinkwrap":false},"2.0.1":{"description":"A set of Custom Elements to deal with YAML files","name":"@granite-elements/granite-yaml","homepage":"https://github.com/LostInBrittany/granite-yaml","repository":{"type":"git","url":"git+https://github.com/LostInBrittany/granite-yaml.git"},"resolutions":{"inherits":"2.0.3","samsam":"1.1.3","supports-color":"3.1.2","type-detect":"1.0.0","@webcomponents/webcomponentsjs":"2.0.0-beta.2"},"main":"granite-yaml-parser.js","license":"Apache-2.0","dependencies":{"@polymer/iron-ajax":"^3.0.0-pre.18","@polymer/polymer":"^3.0.0","js-yaml":"^3.12.0"},"devDependencies":{"@polymer/iron-component-page":"^3.0.0-pre.18","@polymer/iron-demo-helpers":"^3.0.0-pre.18","@polymer/iron-icon":"^3.0.0-pre.18","@polymer/iron-icons":"^3.0.0-pre.18","wct-browser-legacy":"^0.0.1-pre.11","@webcomponents/webcomponentsjs":"^2.0.0"},"version":"2.0.1","gitHead":"079a33b1052d207796c8cc1e58d4d0f96a7ea6ef","bugs":{"url":"https://github.com/LostInBrittany/granite-yaml/issues"},"_id":"@granite-elements/granite-yaml@2.0.1","_npmVersion":"6.3.0","_nodeVersion":"8.9.4","_npmUser":{"name":"lostinbrittany","email":"horacio.gonzalez@gmail.com"},"dist":{"integrity":"sha512-Y9s2D1ICX5YdhXZNQDJwk0yUWd2QjHKKIaSBA2PllM4FXdpOLn0DbgTZMZfav1R6AQU95iVsWEARS73YNMzeig==","shasum":"1b346fbd4a9829ac036ae65105b46b7912cd87b6","tarball":"https://registry.npmjs.org/@granite-elements/granite-yaml/-/granite-yaml-2.0.1.tgz","fileCount":15,"unpackedSize":206053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbaY6ACRA9TVsSAnZWagAA5iYP/3YM6mIu4gEPXwULjZMs\nOfQhNtun4XFSogy2NeUswYav3MNHZ6aUw7ZwGhzzVSf2ntkHCqfFLIQE03Dx\nSqv+opZAfQcM54/9Xkq/Z/4W7dEfD0O8UsUHQuuGWywXPfN3oRBnbE+VZZnS\nvmbc1/SVOMWI6A7f7iKmawILh2jbi+4ba6mGzISSchl+Y/CDTwwt8Sk98jUa\nVueTfO8/wTw5r0JIpWIAAHgrCP0GE2Neny/8qUBW7b8I5U6KHS7ONjFD6Pix\n873UGUsdXVnzRQ+i7yxqZnYp1ZfFSaevjXHsQXe64GEZ+4NzrShRPfJoGbgw\nTgyMQKUlLTZAFxCQFwSP8LDMlj/oe/fqHpISnofWS3EgnKrmOT8JuKzCgBsW\nZjk8Ue5POhoceXTX+bOa7J3AAsmH6hl7De08mPnb3fWQiJGLveWzyVCRTE1d\n5OXr79M/wbmLdEIHmoRQMAg5nCFc75XfyA77mUIbUsOexMJm4opT/zpNzNav\njV0lPy6VJfIR8MIie4bhWENZsb/a58nEMdnO24RNzuD/pRceohjN0haxag3B\nqPbq9LfKxh5ZiOqDxvK0p1EPHd7DWVhRaLgAxuUrbqdEO02UOwpD11e/7PRc\neAVzjbMDRustT+4B4Ic1rZX73RKR18fDXPpks8+5Nrbe7I6cyl9qiTCWpKoQ\nD6Z1\r\n=WJov\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCsjs8N3RLOCFjWMspxHdkKLx0bN7iUi/nRQk12dim3AiA5cgcqNG/np8cS/WGxp8vW4l9ipjZ+sP1dvXXUxMxQeQ=="}]},"maintainers":[{"name":"lostinbrittany","email":"horacio.gonzalez@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/granite-yaml_2.0.1_1533644415779_0.2992834707672769"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-07T12:16:59.673Z","2.0.0":"2018-08-07T12:16:59.992Z","modified":"2022-04-05T15:26:01.366Z","2.0.1":"2018-08-07T12:20:16.601Z"},"maintainers":[{"name":"lostinbrittany","email":"horacio.gonzalez@gmail.com"}],"description":"A set of Custom Elements to deal with YAML files","homepage":"https://github.com/LostInBrittany/granite-yaml","repository":{"type":"git","url":"git+https://github.com/LostInBrittany/granite-yaml.git"},"bugs":{"url":"https://github.com/LostInBrittany/granite-yaml/issues"},"license":"Apache-2.0","readme":"[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/LostInBrittany/granite-yaml)\n\n# granite-yaml\n\nA set of Custom Elements to deal with YAML files.\n\nAvailable elements:\n\n- granite-yaml-parser: A parser of YAML to JS object, based on JS-YAML. \n- granite-yaml-remote-parser: A parser of YAML that grabs a YAML file from an URL and parses it into JS object.\n\n\n> Polymer 3.x. element\n> The legacy Polymer 2.x version is available [here](https://www.webcomponents.org/element/LostInBrittany/granite-yaml/)\n\n## Usage example\n\n<!---\n```\n<custom-element-demo>\n  <template>\n    <script src=\"../../@webcomponents/webcomponentsjs/webcomponents-loader.js\"></script>\n    <script type=\"module\" src=\"../../@granite-elements/granite-yaml/granite-yaml-parser.js\"></script>\n    <dom-bind id=\"binding\">\n      <template>\n        <next-code-block></next-code-block>\n      </template>\n    </dom-bind>\n    <script>    \n      document.querySelector('granite-yaml-parser').addEventListener('yaml-parsed', (evt) => {\n        console.log('YAML parsed inline demo', evt.detail);\n        binding.stringify_obj = JSON.stringify(evt.detail.obj);\n      });\n      let binding = document.getElementById('binding');\n      binding.yaml=`        \naString: 'This is a string'\naNumber: 42\nanotherString: |\n  This is a multiline\n  string\nyetAnotherString: >\n  This is another multiline\n  string\n      `;\n    </script>\n  </template>\n</custom-element-demo>\n```\n-->\n```html\n<granite-yaml-parser \n    yaml='[[yaml]]' \n    obj=\"{{obj}}\" \n    debug></granite-yaml-parser>\n```\n\n## Install\n\n\nInstall the component using [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i @granite-elements/ace-widget --save\n```\n\nOnce installed, import it in your application:\n\nimport '@granite-elements/granite-yaml/granite-yaml-parser.js';\n\n\n\n## Running demos and tests in browser\n\n1. Fork the `granite-yaml` repository and clone it locally.\n\n1. Make sure you have [npm](https://www.npmjs.com/) \nand the [Polymer CLI](https://www.polymer-project.org/3.0/docs/tools/polymer-cli) installed.\n\n1. When in the `granite-yaml` directory, run `npm install` to install dependencies.\n\n1. Serve the project using Polyumer CLI:\n\n    `polymer serve --module-resolution node --component-dir node_modules`\n\n1. Open the demo in the browser\n\n    - http://127.0.0.1:8080/components/@greanite-elements/granite-yaml/demo\n\n\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -m 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## License\n\n[Apache Licence, Version 2.0](https://opensource.org/licenses/Apache-2.0)\n","readmeFilename":"README.md"}