{"id":21339855,"url":"https://github.com/webextensions/helpmate-css","last_synced_at":"2025-03-16T02:41:11.025Z","repository":{"id":65469124,"uuid":"592927524","full_name":"webextensions/helpmate-css","owner":"webextensions","description":"A collection of various CSS related helper functions for Browser and Node.js","archived":false,"fork":false,"pushed_at":"2023-04-07T18:34:19.000Z","size":643,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-23T04:34:59.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/webextensions.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":"2023-01-24T20:43:34.000Z","updated_at":"2023-10-12T01:31:46.000Z","dependencies_parsed_at":"2023-02-16T07:31:09.173Z","dependency_job_id":null,"html_url":"https://github.com/webextensions/helpmate-css","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webextensions%2Fhelpmate-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webextensions%2Fhelpmate-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webextensions%2Fhelpmate-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webextensions%2Fhelpmate-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webextensions","download_url":"https://codeload.github.com/webextensions/helpmate-css/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243817271,"owners_count":20352529,"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-22T00:47:45.389Z","updated_at":"2025-03-16T02:41:11.008Z","avatar_url":"https://github.com/webextensions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# helpmate-css\n\nA collection of various CSS related helper functions for Browser and Node.js\n\n## How to use\n\nWith `import` syntax:\n```js\nimport { beautifyCss } from 'helpmate-css/dist/format/beautifyCss.js';\nimport { minifyCss } from 'helpmate-css/dist/format/minifyCss.js';\nimport { cssToScss } from 'helpmate-css/dist/transform/cssToScss.js';\n```\n\nWith `require` syntax:\n```js\nconst { beautifyCss } = require('helpmate-css/dist/format/beautifyCss.js');\nconst { minifyCss } = require('helpmate-css/dist/format/minifyCss.js');\nconst { cssToScss } = require('helpmate-css/dist/transform/cssToScss.js');\n```\n\n## Example Usages\n\n```js\nimport { minifyCss } from 'helpmate-css/dist/format/minifyCss.js';\nimport { beautifyCss } from 'helpmate-css/dist/format/beautifyCss.js';\nimport { cssToScss } from 'helpmate-css/dist/transform/cssToScss.js';\n\nconst cssCode = (`\n    html {\n        background-color: #e0e0e0;\n    }\n    html h1 {\n        font-size: 24px;\n    }\n`);\n\nconst minifiedCss = minifyCss(cssCode);\nconsole.log(minifiedCss);\n\nconst beautifiedCss = beautifyCss(minifiedCss);\nconsole.log(beautifiedCss);\n\nconst scssCode = cssToScss(cssCode);\nconsole.log(scssCode);\n```\n\n## List of available `import` / `require`\n\n```js\n// Load with \"import\" syntax:\n\nimport { beautifyCss } from 'helpmate-css/dist/format/beautifyCss.js';\nimport { csspretty } from 'helpmate-css/dist/format/csspretty.js';\nimport { minifyCss } from 'helpmate-css/dist/format/minifyCss.js';\nimport { format } from 'helpmate-css/dist/format/index.js';\n\nimport { cssToScss } from 'helpmate-css/dist/transform/cssToScss.js';\nimport { transform } from 'helpmate-css/dist/transform/index.js';\n\nimport { helpmateCss } from 'helpmate-css/dist/index.js';\nimport { helpmateCss } from 'helpmate-css';\n\n\n// Load with \"require\" syntax:\n\nconst { beautifyCss } = require('helpmate-css/dist/format/beautifyCss.cjs');\nconst { csspretty } = require('helpmate-css/dist/format/csspretty.cjs');\nconst { minifyCss } = require('helpmate-css/dist/format/minifyCss.cjs');\nconst { format } = require('helpmate-css/dist/format/index.cjs');\n\nconst { cssToScss } = require('helpmate-css/dist/transform/cssToScss.cjs');\nconst { transform } = require('helpmate-css/dist/transform/index.cjs');\n\nconst { helpmateCss } = require('helpmate-css/dist/index.cjs');\nconst { helpmateCss } = require('helpmate-css');\n```\n\n## List of files\n\n```\nsrc/format/beautifyCss.js\nsrc/format/csspretty.js\nsrc/format/minifyCss.js\nsrc/format/index.js\n\nsrc/transform/cssToScss.js\nsrc/transform/index.js\n\nsrc/index.js\n```\n\n## Credits\n\n* [Firebrand/css-to-scss](https://github.com/Firebrand/css-to-scss)\n\n## Connect with us\n\n* https://webextensions.org/\n* [GitHub](https://github.com/webextensions/live-css-editor)\n* [Twitter](https://twitter.com/webextensions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebextensions%2Fhelpmate-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebextensions%2Fhelpmate-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebextensions%2Fhelpmate-css/lists"}