{"_id":"@dreamproduction/gettext-twig-parser","_rev":"6-1c46932186d61357f87f2bceeff9bc27","name":"@dreamproduction/gettext-twig-parser","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"@dreamproduction/gettext-twig-parser","version":"0.1.0","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","homepage":"https://dreamproduction.com","main":"index.js","repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"licenses":[{"type":"MIT","url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/tree/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"keywords":["twig","gettext","twig translation","pot"],"license":"MIT","gitHead":"7deb7b68e278689545ad08d06865cd494033d4fa","_id":"@dreamproduction/gettext-twig-parser@0.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"florin.sarba","email":"florin@dreamproduction.com"},"dist":{"integrity":"sha512-pjHQh41QEf49U9TljO/csS9G1dBNmDpzt0lfmvsJ6y0wK14FZDym1DxUwNrx0Aegpj0/7cRzmSzyEauRXA4TYw==","shasum":"f4f6f5569badc465177fa58a7c7c24b3a92b62f6","tarball":"https://registry.npmjs.org/@dreamproduction/gettext-twig-parser/-/gettext-twig-parser-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzYWNjP+sGl5G2g5Ksv+xCmO/5cn/mFo2W+5wWiIP+5AiEAyA42tl2gMziHowlJLWg3CT1z4z4v50/zu4gm+LaeA88="}]},"maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gettext-twig-parser-0.1.0.tgz_1516201257832_0.47630556346848607"}},"0.1.1":{"name":"@dreamproduction/gettext-twig-parser","version":"0.1.1","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","homepage":"https://dreamproduction.com","main":"index.js","repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"licenses":[{"type":"MIT","url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/tree/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"keywords":["twig","gettext","twig translation","pot"],"license":"MIT","gitHead":"7deb7b68e278689545ad08d06865cd494033d4fa","_id":"@dreamproduction/gettext-twig-parser@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"florin.sarba","email":"florin@dreamproduction.com"},"dist":{"integrity":"sha512-uGWTuJFwtuQrQsabxBMqJmrPs3LymMxZeJ85b1C5gSpmXbH2hYj2+1TUrXBwfbwHMga4+yRbEZT1RCOAxV9Jxg==","shasum":"b5a0457b4241f0ab5bed3fa272da4675e716dd96","tarball":"https://registry.npmjs.org/@dreamproduction/gettext-twig-parser/-/gettext-twig-parser-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMI9AzmpablIvWxrnRhTD3DgPU6lwDANHimD6WBqrleAiBzuZtOQ/MVYPtfdElF+HDI37TRmbaaKQU6qKRW8CR15g=="}]},"maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"},{"name":"mircea.tihu","email":"mircea@dreamproduction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gettext-twig-parser-0.1.1.tgz_1516202621299_0.036409587832167745"}},"0.1.2":{"name":"@dreamproduction/gettext-twig-parser","version":"0.1.2","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","homepage":"https://dreamproduction.com","main":"index.js","repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"licenses":[{"type":"MIT","url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/tree/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"keywords":["twig","gettext","twig translation","pot"],"license":"MIT","gitHead":"fbe34c25350488c28691b5ce45425830df0c83ff","_id":"@dreamproduction/gettext-twig-parser@0.1.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"florin.sarba","email":"florin@dreamproduction.com"},"dist":{"integrity":"sha512-UFtr4H31OZ7gIz2t5buoBcDH6TdUIGXOA3cW5wWyfu+lVAcGh60+rbApzfc71TsTNISU2hDEh5Add7BMossQZA==","shasum":"6f192117cfc8d909b21f3459d488e91545589954","tarball":"https://registry.npmjs.org/@dreamproduction/gettext-twig-parser/-/gettext-twig-parser-0.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuYGX/jJZvxqzX/tTa/PvH8nDsf9BuRjGB/tYT1vPiKgIhALiGx/rDqgVlCA+PX5Oka8g1h053WjlsHWQ/64XPrD4U"}]},"maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"},{"name":"mircea.tihu","email":"mircea@dreamproduction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gettext-twig-parser-0.1.2.tgz_1516202754690_0.4607625708449632"}},"0.1.3":{"name":"@dreamproduction/gettext-twig-parser","version":"0.1.3","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","homepage":"https://dreamproduction.com","main":"index.js","repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"licenses":[{"type":"MIT","url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/tree/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"keywords":["twig","gettext","twig translation","pot"],"license":"MIT","gitHead":"62cb414c0c413261fa6c7e9fb14e9a0e4c209624","_id":"@dreamproduction/gettext-twig-parser@0.1.3","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"florin.sarba","email":"florin@dreamproduction.com"},"dist":{"integrity":"sha512-rYBgt1uoobqWVUHrAQDSlW0b36M2cUH0vK2gMk7upMGIm7Ib5Hqw/s7zrGpryuQWv86i8vNXFPNoEtwCDnwmUw==","shasum":"7ed0f002ae4089d5435df682063f8d7f5a977659","tarball":"https://registry.npmjs.org/@dreamproduction/gettext-twig-parser/-/gettext-twig-parser-0.1.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNzIQxzUt5Yyg7hufJKVGYeGfj5B8v/rAgYq+d2YKMTgIhAPOpOXSFMi4hOcaDHDB1ACQ40yVO16T8athLZmtcRLM0"}]},"maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"},{"name":"mircea.tihu","email":"mircea@dreamproduction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gettext-twig-parser-0.1.3.tgz_1516357679655_0.25108467089012265"}},"0.1.4":{"name":"@dreamproduction/gettext-twig-parser","version":"0.1.4","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","homepage":"https://dreamproduction.com","main":"index.js","repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"licenses":[{"type":"MIT","url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/tree/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"keywords":["twig","gettext","twig translation","pot"],"license":"MIT","gitHead":"7368835cc1c878cab4122cc8f56cf0626ca607c6","_id":"@dreamproduction/gettext-twig-parser@0.1.4","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"florin.sarba","email":"florin@dreamproduction.com"},"dist":{"integrity":"sha512-/mYTEc4fHLyIsbtCORJErQWIzEicppO+ZkS1wwmW479Jb53ub+Up6tajfPlpYOwLvLdMY+N1bDNvl7QCYldQTg==","shasum":"6e55903dcc3caef2793b5dac00600c2b636754f9","tarball":"https://registry.npmjs.org/@dreamproduction/gettext-twig-parser/-/gettext-twig-parser-0.1.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8WX0vNLa0Ks1QoeFyPr8iM2gzQCnVluGL5lih2CMTHAIhAKBb+6+Ij69DaePHzGiX+Sf6LIMAopljWT4uvgEOd5nL"}]},"maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"},{"name":"mircea.tihu","email":"mircea@dreamproduction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gettext-twig-parser-0.1.4.tgz_1516368943281_0.63319769105874"}},"0.1.5":{"name":"@dreamproduction/gettext-twig-parser","version":"0.1.5","description":"A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.","homepage":"https://dreamproduction.com","main":"index.js","repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"licenses":[{"type":"MIT","url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/tree/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"keywords":["twig","gettext","twig translation","pot"],"license":"MIT","gitHead":"ccc5ff18bffa5ef044b4af92e7524cd3136d7675","_id":"@dreamproduction/gettext-twig-parser@0.1.5","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"florin.sarba","email":"florin@dreamproduction.com"},"dist":{"integrity":"sha512-NpHM/J7qeSPj3stNlYCdyt7kPPVZlhNTylFGFJscvE+N9KcSLeK+7cciUW/fVxPP5+6FvcQbqbSIognewXdFaA==","shasum":"9b491b14e364d16fb09005e8a9927050eb9263e4","tarball":"https://registry.npmjs.org/@dreamproduction/gettext-twig-parser/-/gettext-twig-parser-0.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4psvba5DzqXWDymWyvs2CljwChwqg9VkZb2+BCe8/vAiAOPpozWVYl767g1uu02Q7sISqZ3rhnuXiNtIo7rMiuqQ=="}]},"maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"},{"name":"mircea.tihu","email":"mircea@dreamproduction.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gettext-twig-parser-0.1.5.tgz_1516370843876_0.6317639655899256"}}},"readme":"[![npm (scoped)](https://img.shields.io/npm/v/@dreamproduction/gettext-twig-parser.svg)](https://www.npmjs.com/package/@dreamproduction/gettext-twig-parser) [![npm](https://img.shields.io/npm/dt/@dreamproduction/gettext-twig-parser.svg)](https://www.npmjs.com/package/@dreamproduction/gettext-twig-parser)\n# gettext-twig-parser\n\n> A module that parses i18n twig strings and creates a PHP file with all the calls readable by a pot file generator.\n\n## Getting Started\n\nFirst add it as a dependency to your `package.json`:\n\n##### NPM\n```shell\nnpm install @dreamproduction/gettext-twig-parser --save-dev\n```\n\n##### Yarn\n```shell\nyarn add @dreamproduction/gettext-twig-parser\n```\n\nOnce the plugin has been installed, it may be used in a JavaScript file using:\n\n```js\nrequire('@dreamproduction/gettext-twig-parser');\n```\n\n## How to Use\n\n### Overview\nIn a JavaScript file, require the module and assign it to a variable:\n\n```js\nconst gettextTwigParser = require('@dreamproduction/gettext-twig-parser');\n```\n\nThen run it while specifying some options:\n\n```js\ngettextTwigParser.parse({\n    options: {\n        textdomain: 'sample',\n        add_textdomain: true,\n        output_dir: 'src/tmp/',\n        output_filename: 'gettext-twig-parser.php'\n    },\n    files: [ '**/*.twig' ]\n});\n```\n\n### Options\n\n#### options.textdomain\nType: `String|null`\nDefault value: `null`\n\nA string value that matches your text domain.\n\n#### options.add_textdomain\nType: `Bool`\nDefault value: `true`\n\nA boolean value that specifies if the text domain should be appended to the output file.\n\n#### options.output_dir\nType: `String`\nDefault value: `''`\n\nA string value that specifies the output directory in which the PHP file will be created.\n\n#### options.output_filename\nType: `String`\nDefault value: `''`\n\nA string value that specifies the output filename which will contain the PHP code.\n\n## Supported Translation Functions\n- __()\n- _x()\n- _n()\n- _nx()\n- _n_noop()\n- _nx_noop()\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint and test your code.\n","maintainers":[{"name":"florin.sarba","email":"florin@dreamproduction.com"},{"name":"mircea.tihu","email":"mircea@dreamproduction.com"}],"time":{"modified":"2022-04-05T05:37:49.419Z","created":"2018-01-17T15:00:58.785Z","0.1.0":"2018-01-17T15:00:58.785Z","0.1.1":"2018-01-17T15:23:42.299Z","0.1.2":"2018-01-17T15:25:55.548Z","0.1.3":"2018-01-19T10:28:00.633Z","0.1.4":"2018-01-19T13:35:43.386Z","0.1.5":"2018-01-19T14:07:24.788Z"},"homepage":"https://dreamproduction.com","keywords":["twig","gettext","twig translation","pot"],"repository":{"type":"git","url":"git://git.dreamproduction.com/wordpress.utils/gettext-twig-parser"},"author":{"name":"Dream Production","email":"contact@dreamproduction.com"},"bugs":{"url":"https://git.dreamproduction.com/wordpress.utils/gettext-twig-parser/issues"},"license":"MIT","readmeFilename":"README.md"}