{"id":21206579,"url":"https://github.com/oncomouse/gulp-pandoc-writer","last_synced_at":"2025-07-10T08:33:06.838Z","repository":{"id":57258489,"uuid":"57392892","full_name":"oncomouse/gulp-pandoc-writer","owner":"oncomouse","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-13T16:15:10.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T05:40:42.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oncomouse.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-29T15:02:01.000Z","updated_at":"2017-11-29T01:27:27.000Z","dependencies_parsed_at":"2022-08-25T21:23:45.798Z","dependency_job_id":null,"html_url":"https://github.com/oncomouse/gulp-pandoc-writer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fgulp-pandoc-writer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fgulp-pandoc-writer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fgulp-pandoc-writer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oncomouse%2Fgulp-pandoc-writer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oncomouse","download_url":"https://codeload.github.com/oncomouse/gulp-pandoc-writer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225073063,"owners_count":17416536,"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-11-20T20:56:07.898Z","updated_at":"2024-11-20T20:56:08.500Z","avatar_url":"https://github.com/oncomouse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-pandoc-writer\n\n`gulp` plugin that generates static files using `pandoc`.\n\nPorted directly from [gulp-pandoc-pdf](https://github.com/brightsparklabs/gulp-pandoc-pdf), just changed to work with more file formats (gulp-pandoc-pdf only produces PDF files).\n\n## Installation\n\n```shell\nnpm install gulp-pandoc-writer --save-dev \n```\n\n## Usage\n\n```javascript\nvar pandocWriter = require('gulp-pandoc-writer');\n\ngulp.task('build', function() {\n    gulp.src('src/markdown/**/*.md')\n        .pipe(pandocWriter({\n\t\t\toutputDir: 'dist/docx',\n\t\t\tinputFileType:'.md',\n\t\t\toutputFileType: '.docx',\n\t\t\targs: [\n\t\t\t\t'--smart'\n\t\t\t]\n        })) \n        .pipe(gulp.dest('build/html'));\n});\n```\n\n## API\n\n### pandocWriter(options)\n\n#### options.outputDir\n\n**Type:** String\n\nThe directory to which output will be written by the plugin. The plugin will also generate HTML files for streaming purposes.\n\n\n#### options.inputFileType\n\nThis can be any filetype supported by pandoc. Defaults to .md when no filetype is specified.\n\n#### options.outputFileType\n\n**Type:** String\n\nCan be any file type, but the major focus of this plugin are files such as `.docx`, `.odt`, `.epub` that `pandoc` can create but will not write to `STDOUT` for streaming purposes in Gulp.\n\n#### options.args\n\n**Type:** Array\n\nAdditional arguments that might need to be passed to pandoc, e.g. `['--smart']`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Fgulp-pandoc-writer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foncomouse%2Fgulp-pandoc-writer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foncomouse%2Fgulp-pandoc-writer/lists"}