{"dist":{"shasum":"8c382e5de2eae302daed5cef284f2a3f197181b9","tarball":"https://registry.npmjs.org/melody-parser/-/melody-parser-1.5.1-ed89a02.5.tgz","fileCount":14,"integrity":"sha512-dJfE2QYl9H7uUpN+/0UwG5BamhhwfnxPvfuwx30aOToTLkrbx31lfqNSgvckKI/0q7qp0jlC6J5Z9WC/fy4Bxg==","signatures":[{"sig":"MEUCIE2t3iZU2PooTv4ZMIzKwQRcsLB5SH2dIDhB6SH2okRaAiEA3WCQTg3UygxjDuhsEkzIr8bu9uPkhmC0sOMISz2UDtg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":215751,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFfVJCRA9TVsSAnZWagAA87AP/jBJ3GMRbC/468kWHTa6\nKKTWSaQFBlvpZVWFuN8x1aUMNe+8rmVkNY6x1GMmtm6vR1v8wFGSdp23E36T\nQehzzyArR1D/5+5FFtrrqZxbsFhjk4ovowjptu0v5evsRE7KuexLiSnxsNCK\nsP7/Ee2h5R4Aur8RYQ1jYOnPe8e55Pa6sz3MqfrTf1QEfoRGquLMsGrbYjBk\nAgnPJBqi1c9j1HGBTCghijs+/u/q6qJ/vl5kLX6qotVEaMrp6M73Panq40Uo\nYx+IomUvZqXqV8UA/uh7jb+5vXcZ6sNamVBBv249IYpbDqsss3IhQyLO7oCZ\n6tPk1u4CMg7f0cb7nVrQKrULOIGHH5+28N8EZ5ShlKrdkqicgGwbjttttH2D\nkFoGCJQPspmwiUo2F2E0tOLwFs7YRHoL6woFdZuiUsRTtG8caReLk+n1dgqm\n3jUjUAtSc9pboCyB4AridyaSSSxCL9sIcsmN9HM4lWMRbgC+RsvUAl8wHZIl\np4PSEUMb+GGpcoBCrscyJ9mTmANAE2zRQKXVacpIrVm99glVdA3z92nL9f96\nnVn6uesdhHg0niGB10P/JZzJQoPf2gJKBX3IB5HU7bCXytFjTkJm1V+r+1hz\nT13nKYSSClNpayn2qAwuGyN2V8s4yJkNUxdstKh5wRDkoJjIJ5wHQjkWNCz2\nrH31\r\n=marO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./lib/index.js","name":"melody-parser","author":"","readme":"# melody-parser\n\nThis parser is an extensible parser for the Twig template language.\n\n## Usage\n\n```javascript\nconst { CharStream, Lexer, TokenStream, Parser } = require('melody-parser');\n\nconst parser = new Parser(\n    new TokenStream(new Lexer(new CharStream(code)), {\n        ignoreComments: false,\n        ignoreHtmlComments: false,\n        preserveSourceLiterally: true,\n    })\n);\nreturn parser.parse();\n```\n\nShorthand usage, with all options set to defaults:\n\n```javascript\nconst { parse } = require('melody-parser');\n\nconst abstractSyntaxTree = parse(\n    '{% spaceless %} This is some Twig code {% endspaceless %}'\n);\n```\n\n## Options\n\n### ignoreComments (`true`)\n\nIf set to `true`, Twig comments will not be part of the resulting abstract syntax tree (AST). Defaults to `true`.\n\n### ignoreHtmlComments (`true`)\n\nIf set to `true`, HTML comments will not be part of the resulting abstract syntax tree (AST). Defaults to `true`.\n\n### preserveSourceLiterally (`false`)\n\nThis option can be useful for pretty printing scenarios, hence it is turned off by default. If set to `true`, transformations like decoding of HTML entities or escape sequences will not be applied.\n\n### decodeEntities (`true`, deprecated, use `preserveSourceLiterally` instead)\n\nCharacter references/entities like `&#8206;` will be decoded if this is set to `true` (default). Otherwise, the string will be taken over verbatim to the AST.\n","gitHead":"ed89a02b07f9019a14fe422ce58ec3a9d8cbea83","license":"Apache-2.0","scripts":{"build":"mkdir lib; rollup -c ../../rollup.config.js -i src/index.js"},"_npmUser":{"name":"tbtrivago","email":"thomas.bartel@trivago.com"},"_npmVersion":"lerna/3.13.1/node@v9.11.2+x64 (darwin)","description":"This parser is an extensible parser for the Twig template language.","directories":{},"jsnext:main":"./lib/index.esm.js","maintainers":[{"name":"abertelle","email":"ale.berte@hotmail.it"},{"name":"ayusharma","email":"ayush.aceit@gmail.com"},{"name":"drkrakenfuss","email":"nicolai.schulten@byte-garden.de"},{"name":"eyalaman","email":"efe-gurkan.yalaman@trivago.com"},{"name":"jamesbell","email":"james.bell@trivago.com"},{"name":"pago","email":"patrick.gotthardt@trivago.com"},{"name":"tbtrivago","email":"thomas.bartel@trivago.com"},{"name":"trivagonpm","email":"npm@trivago.com"}],"_nodeVersion":"9.11.2","dependencies":{"he":"^1.1.0","lodash":"^4.12.0","melody-code-frame":"1.5.1-ed89a02.5+ed89a02"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"melody-types":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/melody-parser_1.5.1-ed89a02.5_1578497352780_0.9735201653407732","host":"s3://npm-registry-packages"},"_id":"melody-parser@1.5.1-ed89a02.5","version":"1.5.1-ed89a02.5"}