{"id":17445959,"url":"https://github.com/jamen/pull-minify","last_synced_at":"2025-04-02T11:22:38.673Z","repository":{"id":96785101,"uuid":"91153895","full_name":"jamen/pull-minify","owner":"jamen","description":"Minify JS and CSS files inside a pull-stream","archived":false,"fork":false,"pushed_at":"2017-05-13T06:46:57.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-20T01:56:53.237Z","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-13T06:19:03.000Z","updated_at":"2021-12-19T15:37:51.000Z","dependencies_parsed_at":"2023-05-29T03:15:25.438Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-minify","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"8d6cbe92bd40e4adef614b112bf63457750107c4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-minify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803125,"owners_count":20836496,"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:55.194Z","updated_at":"2025-04-02T11:22:38.653Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pull-minify\n\n\u003e Minify JS and CSS files inside a pull-stream\n\n```js\npull(\n  read(__dirname + '/src/**/*.{js,css}'),\n  minify({\n    js: { mangle: true, toplevel: true },\n    css: { restructure: true }\n  }),\n  write(__dirname + '/out')\n)\n```\n\n## Install\n\n```sh\nnpm install --save pull-minify\n```\n\n```sh\nyarn add pull-minify\n```\n\n## Usage\n\n### `minify(options)`\n\nMinifies CSS and JS files based on extension\n\nOptions are `options.js` and `options.css` which go to `minify.js` and `minify.css`.\n\n```js\npull(\n  read(__dirname + '/src/**/*.{js,css}'),\n  minify({\n    js: { ...options.js },\n    css: { ...options.css }\n  }),\n  write(__dirname + '/out')\n)\n```\n\nYou can opt out by passing `js: false`, `css: false`, etc.\n\n### `minify.js(options)`\n\n### `minify.css(options)`\n\nConvenience functions.  They are identical to:\n\n - [`pull-minify-js`](https://github.com/jamen/pull-minify-js)\n - [`pull-minify-css`](https://github.com/jamen/pull-minify-css)\n\n---\n\nMaintained by [Jamen Marz](https://git.io/jamen) (See on [Twitter](https://twitter.com/jamenmarz) and [GitHub](https://github.com/jamen) for questions \u0026 updates)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-minify/lists"}