{"id":21947666,"url":"https://github.com/valpackett/broccoli-webp","last_synced_at":"2025-03-22T16:46:59.116Z","repository":{"id":15604031,"uuid":"18340219","full_name":"valpackett/broccoli-webp","owner":"valpackett","description":"A Broccoli plugin for converting JPEG/PNG images to WebP.","archived":false,"fork":false,"pushed_at":"2016-04-04T13:02:30.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T23:05:06.013Z","etag":null,"topics":["broccoli","broccoli-plugin","webp"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valpackett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-01T18:36:49.000Z","updated_at":"2023-09-08T16:46:41.000Z","dependencies_parsed_at":"2022-09-06T17:50:53.297Z","dependency_job_id":null,"html_url":"https://github.com/valpackett/broccoli-webp","commit_stats":null,"previous_names":["myfreeweb/broccoli-webp"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-webp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-webp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-webp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valpackett%2Fbroccoli-webp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valpackett","download_url":"https://codeload.github.com/valpackett/broccoli-webp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244990167,"owners_count":20543615,"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":["broccoli","broccoli-plugin","webp"],"created_at":"2024-11-29T05:09:08.610Z","updated_at":"2025-03-22T16:46:58.846Z","avatar_url":"https://github.com/valpackett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# broccoli-webp [![npm version](https://img.shields.io/npm/v/broccoli-webp.svg?style=flat)](https://www.npmjs.org/package/broccoli-webp) [![npm downloads](https://img.shields.io/npm/dm/broccoli-webp.svg?style=flat)](https://www.npmjs.org/package/broccoli-webp) [![Build Status](https://img.shields.io/travis/myfreeweb/broccoli-webp.svg?style=flat)](https://travis-ci.org/myfreeweb/broccoli-webp) [![Dependency Status](https://img.shields.io/gemnasium/myfreeweb/broccoli-webp.svg?style=flat)](https://gemnasium.com/myfreeweb/broccoli-webp) [![Unlicense](https://img.shields.io/badge/un-license-green.svg?style=flat)](http://unlicense.org)\n\nThis [Broccoli] plugin converts JPEG/PNG files to [WebP].\n\n[Broccoli]: https://github.com/joliss/broccoli\n[WebP]: https://developers.google.com/speed/webp/\n\n## Installation\n\nInstall just like any other broccoli plugin:\n\n```bash\nnpm install --save-dev broccoli-webp\n```\n\n[cwebp-bin](https://www.npmjs.org/package/cwebp-bin) is listed as an optional dependency.  \nIf you can't install it, install cwebp manually:\n\n- FreeBSD: `pkg install graphics/webp`\n- OS X: `brew install webp`\n- Ubuntu/Debian: `sudo apt-get install webp`\n\n## Usage\n\n```js\nvar Webp = require('broccoli-webp')\n\nvar outputNode = new Webp(inputNode, options)\n```\n\n- **`inputNode`**: A node (tree) that contains the images you want to convert.\n- **`options`**: A hash of options. Currently supported:\n    - **`quality`** (number, 0..100): compression quality for JPEGs (PNGs are converted to lossless WebP)\n    - **`alphaQuality`** (number, 0..100): transparency quality\n    - **`compression`** (number, 0 -- fast, 6 -- slowest): compression strength\n\n## Example\n\n```js\nvar Webp = require('broccoli-webp')\n\nvar img = 'img'\n\nvar webp = new Webp(img, {quality: 80})\n\nreturn [img, webp]\n```\n\n## Contributing\n\nPlease feel free to submit pull requests!\n\nBy participating in this project you agree to follow the [Contributor Code of Conduct](http://contributor-covenant.org/version/1/4/).\n\n## License\n\nThis is free and unencumbered software released into the public domain.  \nFor more information, please refer to the `UNLICENSE` file or [unlicense.org](http://unlicense.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalpackett%2Fbroccoli-webp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalpackett%2Fbroccoli-webp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalpackett%2Fbroccoli-webp/lists"}