{"id":17445952,"url":"https://github.com/jamen/pixie-cli","last_synced_at":"2025-04-02T10:43:10.251Z","repository":{"id":57325139,"uuid":"68583752","full_name":"jamen/pixie-cli","owner":"jamen","description":"Create and compile templates from the command line","archived":false,"fork":false,"pushed_at":"2017-08-09T22:00:55.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-09T07:23:05.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jamen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-19T08:11:22.000Z","updated_at":"2021-12-19T15:35:56.000Z","dependencies_parsed_at":"2022-09-18T22:11:27.061Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pixie-cli","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpixie-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpixie-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpixie-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpixie-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pixie-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802594,"owners_count":20836365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-17T18:18:41.840Z","updated_at":"2025-04-02T10:43:10.226Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixie-cli [![NPM version](https://badge.fury.io/js/pixie-cli.svg)](https://npmjs.org/package/pixie-cli)\n\n\u003e Create and compile templates from the command line.\n\n```sh\n# Rendering:\necho \"Foo {{bar}} baz\" | pixie --bar='BLAG'\n# Foo BLAG baz\n\n# Parsing:\necho \"Hello {{world}}?\" | pixie parse\n# [[\"Hello \",\"?\\n\"],[\"world\"]]\n\n# Compiling (template above):\necho '[[\"Hello \",\"?\\\\n\"],[\"world\"]]' | pixie compile --world='Earth'\n# Hello Earth?\n```\n\nCLI wrapper over [`pixie`](https://github.com/jamen/pixie), to easily create and compile templates from command line.  You can also use a `.pixierc` file, or any [other methods the `rc` module supports](https://github.com/dominictarr/rc#standards)\n\n## Installation\n\n```sh\n$ npm install --global pixie-cli\n```\n\n## API\n\n### `pixie render`\nRender the STDIN against the supplied data.  Running `pixie` aliases to this.\n\n```sh\necho \"Foo {{bar}} baz\" | pixie --bar='12345'\n# Foo 12345 baz\n```\n\n### `pixie parse`\nParse the STDIN into a Pixie template.\n\n```sh\necho \"Foo {{bar}} baz\" | pixie parse\n# [[\"Foo \",\" baz\\n\"],[\"bar\"]]\n```\n\n### `pixie compile`\nCompile the STDIN as a template, against data supplied through options or config.\n\n```sh\ncat template.json | pixie compile --bar='12345'\n# Foo 12345 baz\n```\n\n## License\n\nMIT © [Jamen Marz](https://github.com/jamen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpixie-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpixie-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpixie-cli/lists"}