{"id":22783034,"url":"https://github.com/stylecow/stylecow-core","last_synced_at":"2025-04-15T18:26:05.447Z","repository":{"id":26701599,"uuid":"30158668","full_name":"stylecow/stylecow-core","owner":"stylecow","description":"The core of stylecow","archived":false,"fork":false,"pushed_at":"2020-11-01T17:20:55.000Z","size":7473,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"deno","last_synced_at":"2025-03-26T17:51:55.607Z","etag":null,"topics":["css","deno","preprocessor","stylecow"],"latest_commit_sha":null,"homepage":"http://stylecow.github.io/","language":"CSS","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/stylecow.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":"2015-02-01T20:27:06.000Z","updated_at":"2023-05-31T05:02:24.000Z","dependencies_parsed_at":"2022-08-18T18:40:43.010Z","dependency_job_id":null,"html_url":"https://github.com/stylecow/stylecow-core","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylecow%2Fstylecow-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylecow%2Fstylecow-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylecow%2Fstylecow-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylecow%2Fstylecow-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylecow","download_url":"https://codeload.github.com/stylecow/stylecow-core/tar.gz/refs/heads/deno","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248994120,"owners_count":21195324,"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":["css","deno","preprocessor","stylecow"],"created_at":"2024-12-11T22:06:35.097Z","updated_at":"2025-04-15T18:26:05.427Z","avatar_url":"https://github.com/stylecow.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stylecow core\n\nFast and furious css processor. For Deno\n\nSimple usage example:\n\n```javascript\nimport { parseFile, Task, Coder } from 'https://deno.land/x/stylecow_core/mod.js';\n\nimport importPlugin from 'https://deno.land/x/stylecow_import/mod.js';\nimport nestedRulesPlugin from 'https://deno.land/x/stylecow_nested_rules/mod.js';\n\n//Create a Tasks instance and add some plugins\nconst tasks = new Tasks()\n  .use(importPlugin)\n  .use(nestedRulesPlugin)\n\n  //custom tasks\n  .addTask({\n    filter: {\n      type: 'Keyword',\n      name: 'grey'\n    },\n    fn: keyword =\u003e keyword.name = 'gray'\n  });\n\n//Create a Coder instance to minify the css code\nconst coder = new Coder('minify');\n\n//Parse a css file\nconst css = parseFile('styles.css');\n\n//Execute the tasks\ntasks.run(css);\n\n//Get the minified code\nconst code = coder.run(css);\n\nconsole.log(code.css);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylecow%2Fstylecow-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylecow%2Fstylecow-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylecow%2Fstylecow-core/lists"}