{"id":21954177,"url":"https://github.com/cssobj/cssobj-plugin-gencss","last_synced_at":"2026-05-14T23:08:12.311Z","repository":{"id":72105874,"uuid":"63371674","full_name":"cssobj/cssobj-plugin-gencss","owner":"cssobj","description":"Generate css text from cssobj in server side.","archived":false,"fork":false,"pushed_at":"2017-07-26T01:43:09.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T19:55:10.260Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssobj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-07-14T21:40:58.000Z","updated_at":"2020-09-23T00:48:26.000Z","dependencies_parsed_at":"2023-02-24T17:45:25.660Z","dependency_job_id":null,"html_url":"https://github.com/cssobj/cssobj-plugin-gencss","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-gencss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-gencss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-gencss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-gencss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssobj","download_url":"https://codeload.github.com/cssobj/cssobj-plugin-gencss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245001903,"owners_count":20545331,"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-29T07:16:54.858Z","updated_at":"2026-05-14T23:08:07.285Z","avatar_url":"https://github.com/cssobj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cssobj-plugin-gencss\n\n[![Join the chat at https://gitter.im/css-in-js/cssobj](https://badges.gitter.im/css-in-js/cssobj.svg)](https://gitter.im/css-in-js/cssobj)\n\nGenerate css text from [cssobj-core](https://github.com/cssobj/cssobj-core).\n\n## Usage\n\n``` javascript\nvar cssobj_core = require('cssobj-core')\nvar pluginGenCSS = require('cssobj-plugin-gencss')\nvar cssobj = cssobj_core({plugins: [pluginGenCSS(option)] })\nvar result = cssobj(obj)\n\n// result.css will have the css text generated\n```\n\n## Install\n\n``` javascript\nnpm install cssobj/cssobj-plugin-gencss\n```\n\n## API\n\n### `var plugin = pluginGenCSS(option)`\n\nGet plugin function to apply, pass option.\n\n### *PARAMS*\n\n### `option`\n\n - `indent` : {string} Indent string for each level when format css, default is '  ' (2 space).\n\n - `newLine` : {string} New-line string. default is '\\n'.\n\n - `initIndent` : {string} Init indent for all lines. default is ''.\n\n### *RETURN*\n\nA function can be as cssobj plugin.\n\n\n## Example\n\n``` javascript\npluginGenCSS({indent:'\\t', initIndent:'\\t'})  // all lines will have \\t infront\n\npluginGenCSS({newLine:''})  //all lines will join together\n\n```\n\n## Helpers\n\nThis plugin can use with [plugin-stylize](https://github.com/cssobj/cssobj-plugin-stylize) to apply generated css text into `\u003cstyle\u003e` tag.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssobj%2Fcssobj-plugin-gencss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssobj%2Fcssobj-plugin-gencss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssobj%2Fcssobj-plugin-gencss/lists"}