{"id":18434733,"url":"https://github.com/assemble/assemble-redirects","last_synced_at":"2025-07-02T07:36:18.766Z","repository":{"id":66211893,"uuid":"49922027","full_name":"assemble/assemble-redirects","owner":"assemble","description":"Assemble pipeline plugin for generating a redirects file from a stream of manifest files.","archived":false,"fork":false,"pushed_at":"2016-01-19T02:57:49.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-02T07:39:16.054Z","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/assemble.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-01-19T02:57:17.000Z","updated_at":"2016-01-19T03:28:51.000Z","dependencies_parsed_at":"2023-02-21T23:16:18.324Z","dependency_job_id":null,"html_url":"https://github.com/assemble/assemble-redirects","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/assemble/assemble-redirects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-redirects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-redirects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-redirects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-redirects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assemble","download_url":"https://codeload.github.com/assemble/assemble-redirects/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-redirects/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263094508,"owners_count":23412979,"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-06T06:05:09.388Z","updated_at":"2025-07-02T07:36:18.739Z","avatar_url":"https://github.com/assemble.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assemble-redirects [![NPM version](https://img.shields.io/npm/v/assemble-redirects.svg)](https://www.npmjs.com/package/assemble-redirects)\n\n\u003e Generate a redirects file from a stream of manifest files.\n\n## Install\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i assemble-redirects --save\n```\n\n## Usage\n\n```js\nvar redirects = require('assemble-redirects');\n```\n\n## API\n\n### [redirects](index.js#L31)\nGenerate a redirects.json file from a stream of manifest.json files.\n\n\n**Params**\n\n* `app` **{Object}**: Instance of an app that's inherited from [templates][].    \n* `options` **{Object}**: Additional options used to control `redirects.json` file.    \n* `options.path` **{String}**: Path to be set on newly created file. (Defaults to `redirects.json`)    \n* `returns` **{Stream}**: Stream that can be used in a pipeline.  \n\n**Example**\n\n\n\n```js\napp.src(patterns)\n  .pipe(redirects(app))\n  .on('data', function(file) {\n    if (file.path === 'redirects.json') {\n      console.log(file.content);\n    }\n  });\n```\n\n\n\n## Related projects\n* [assemble](https://www.npmjs.com/package/assemble): Assemble is a powerful, extendable and easy to use static site generator for node.js. Used… [more](https://www.npmjs.com/package/assemble) | [homepage](https://github.com/assemble/assemble)\n* [assemble-core](https://www.npmjs.com/package/assemble-core): The core assemble application with no presets or defaults. All configuration is left to the… [more](https://www.npmjs.com/package/assemble-core) | [homepage](https://github.com/assemble/assemble-core)\n* [generate](https://www.npmjs.com/package/generate): Fast, composable, highly extendable project generator with a user-friendly and expressive API. | [homepage](https://github.com/generate/generate)\n* [templates](https://www.npmjs.com/package/templates): System for creating and managing template collections, and rendering templates with any node.js template engine.… [more](https://www.npmjs.com/package/templates) | [homepage](https://github.com/jonschlinkert/templates)\n\n## Running tests\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/assemble-redirects/issues/new).\n\n## Author\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\nCopyright © 2016 [Brian Woodward](https://github.com/doowb)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on January 18, 2016._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemble%2Fassemble-redirects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassemble%2Fassemble-redirects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemble%2Fassemble-redirects/lists"}