{"id":17446006,"url":"https://github.com/jamen/pull-minify-css","last_synced_at":"2025-04-02T11:22:20.493Z","repository":{"id":96785112,"uuid":"90859914","full_name":"jamen/pull-minify-css","owner":"jamen","description":"Minify CSS files or buffers inside a pull-stream","archived":false,"fork":false,"pushed_at":"2017-05-11T05:02:25.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-09T10:07:31.754Z","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-10T12:07:38.000Z","updated_at":"2021-12-19T15:38:16.000Z","dependencies_parsed_at":"2023-05-29T03:15:23.819Z","dependency_job_id":null,"html_url":"https://github.com/jamen/pull-minify-css","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"1a2db6f2994b6bb9c35619ff5c31e0395b151d02"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fpull-minify-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/pull-minify-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803019,"owners_count":20836471,"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:20:13.718Z","updated_at":"2025-04-02T11:22:20.457Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pull-minify-css\n\n\u003e Minify CSS files or buffers inside a pull-stream\n\nMinifies [streamed CSS files](https://github.com/jamen/pull-files) with [`csso`](https://github.com/css/csso)\n\n```js\nconst pull = require('pull-stream')\nconst { read, write } = require('pull-files')\nconst minify = require('pull-minify-css')\n\npull(\n  read(__dirname + '/src/css/**/*.css'),\n  minify({ restructure: true }),\n  write(__dirname + '/out/css', err =\u003e {\n    // done\n  })\n)\n```\n\n## Install\n\n```sh\nnpm install --save pull-minify-css\n```\n\n```sh\nyarn add pull-minify-css\n```\n\n## Usage\n\n### `minify(options?)`\n\nMinifies [streamed files](https://github.com/jamen/pull-files). See [`csso`'s options](https://github.com/css/csso#minifysource-options) to use here\n\n```js\npull(\n  read([ 'index.css', 'foo.css' ], { cwd: __dirname }),\n  minify({ ...options }),\n  write(__dirname + '/out', err =\u003e {\n    // done\n  })\n)\n```\n\nYou can disable errors for non-CSS files by doing:\n\n```js\nminify({ strict: false, ...options })\n```\n\n### `minify.buffer(options?)`\n\nMinifies buffers instead of files.  Options the same\n\n```js\npull(\n  readFile(__dirname + '/foo.css'),\n  minify.buffer({ ...options }),\n  writeFile(__dirname + '/out.css')\n)\n```\n\n## Also see\n\n - [`pull-files`](https://github.com/jamen/pull-files) for reading and writing files\n - [`pull-minify-js`](https://github.com/jamen/pull-minify-js) for minifying JS\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-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fpull-minify-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fpull-minify-css/lists"}