{"id":14967515,"url":"https://github.com/pugjs/pug-cli","last_synced_at":"2025-10-24T06:18:45.166Z","repository":{"id":33086056,"uuid":"36723400","full_name":"pugjs/pug-cli","owner":"pugjs","description":"Pug's CLI interface","archived":false,"fork":false,"pushed_at":"2024-07-30T16:27:48.000Z","size":69,"stargazers_count":259,"open_issues_count":45,"forks_count":61,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-14T17:08:15.598Z","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/pugjs.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-02T09:41:28.000Z","updated_at":"2024-10-29T17:55:47.000Z","dependencies_parsed_at":"2024-01-23T17:42:24.975Z","dependency_job_id":"8c556982-37a8-4014-8db6-847768004a3b","html_url":"https://github.com/pugjs/pug-cli","commit_stats":{"total_commits":59,"total_committers":8,"mean_commits":7.375,"dds":0.1694915254237288,"last_synced_commit":"0eb8d37c5a38cb297cf09361631b93312e0dfa21"},"previous_names":["jadejs/jade-cli"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fpug-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fpug-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fpug-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fpug-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pugjs","download_url":"https://codeload.github.com/pugjs/pug-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190396,"owners_count":22029632,"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-09-24T13:38:10.166Z","updated_at":"2025-10-24T06:18:45.069Z","avatar_url":"https://github.com/pugjs.png","language":"JavaScript","readme":"# pug-cli\n\nPug's CLI interface\n\n[![Build Status](https://img.shields.io/travis/pugjs/pug-cli/master.svg)](https://travis-ci.org/pugjs/pug-cli)\n[![Dependency Status](https://img.shields.io/david/pugjs/pug-cli.svg)](https://david-dm.org/pugjs/pug-cli)\n[![NPM version](https://img.shields.io/npm/v/pug-cli.svg)](https://www.npmjs.org/package/pug-cli)\n[![Coverage Status](https://img.shields.io/codecov/c/github/pugjs/pug-cli.svg)](https://codecov.io/gh/pugjs/pug-cli)\n\n## Usage\n\n```\n$ pug [options] [dir|file ...]\n```\n\nRender `\u003cfile\u003e`s and all files in `\u003cdir\u003e`s. If no files are specified,\ninput is taken from standard input and output to standard output.\n\n### Options\n\n```\n-h, --help             output usage information\n-V, --version          output the version number\n-O, --obj \u003cstr|path\u003e   JSON/JavaScript options object or file\n-o, --out \u003cdir\u003e        output the rendered HTML or compiled JavaScript to\n                       \u003cdir\u003e\n-p, --path \u003cpath\u003e      filename used to resolve includes\n-b, --basedir          path used as root directory to resolve absolute includes\n-P, --pretty           compile pretty HTML output\n-c, --client           compile function for client-side runtime.js\n-n, --name \u003cstr\u003e       the name of the compiled template (requires --client)\n-D, --no-debug         compile without debugging (smaller functions)\n-w, --watch            watch files for changes and automatically re-render\n-E, --extension \u003cext\u003e  specify the output file extension\n-s, --silent           do not output logs\n--name-after-file      name the template after the last section of the file\n                       path (requires --client and overriden by --name)\n--doctype \u003cstr\u003e        specify the doctype on the command line (useful if it\n                       is not specified by the template)\n```\n\n### Examples\n\nRender all files in the `templates` directory:\n\n```\n$ pug templates\n```\n\nCreate `{foo,bar}.html`:\n\n```\n$ pug {foo,bar}.pug\n```\n\nUsing `pug` over standard input and output streams:\n\n```\n$ pug \u003c my.pug \u003e my.html\n$ echo \"h1 Pug!\" | pug\n```\n\nRender all files in `foo` and `bar` directories to `/tmp`:\n\n```\n$ pug foo bar --out /tmp\n```\n\nSpecify options through a string:\n\n```\n$ pug -O '{\"doctype\": \"html\"}' foo.pug\n# or, using JavaScript instead of JSON\n$ pug -O \"{doctype: 'html'}\" foo.pug\n```\n\nSpecify options through a file:\n\n```\n$ echo \"exports.doctype = 'html';\" \u003e options.js\n$ pug -O options.js foo.pug\n# or, JSON works too\n$ echo '{\"doctype\": \"html\"}' \u003e options.json\n$ pug -O options.json foo.pug\n```\n\n## Installation\n\n    npm install pug-cli -g\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpugjs%2Fpug-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpugjs%2Fpug-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpugjs%2Fpug-cli/lists"}