{"id":21954181,"url":"https://github.com/cssobj/cssobj-plugin-csstext","last_synced_at":"2026-04-13T04:47:18.957Z","repository":{"id":72105787,"uuid":"64398086","full_name":"cssobj/cssobj-plugin-csstext","owner":"cssobj","description":"Get cssText from CSSOM.","archived":false,"fork":false,"pushed_at":"2016-12-16T05:50:42.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T06:54:02.607Z","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-28T13:31:35.000Z","updated_at":"2016-11-09T01:30:22.000Z","dependencies_parsed_at":"2023-02-24T17:30:59.038Z","dependency_job_id":null,"html_url":"https://github.com/cssobj/cssobj-plugin-csstext","commit_stats":null,"previous_names":["cssobj/cssobj-plugin-post-csstext"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cssobj/cssobj-plugin-csstext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-csstext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-csstext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-csstext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-csstext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssobj","download_url":"https://codeload.github.com/cssobj/cssobj-plugin-csstext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssobj%2Fcssobj-plugin-csstext/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402631,"owners_count":23759196,"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:56.288Z","updated_at":"2026-04-13T04:47:13.918Z","avatar_url":"https://github.com/cssobj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cssobj-plugin-csstext\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\nDEPRECATED! Use this: [cssobj-helper-showcss](https://github.com/cssobj/cssobj-helper-showcss)\n\nGet cssText from cssobj and CSSOM, for debug purpose.\n\n## Install\n\n- **npm**\n\n``` javascript\nnpm install cssobj/cssobj-plugin-csstext\n```\n\n## Usage:\n\n### Option 1 (recommanded): as callback for onUpdate\n\n``` javascript\nvar result = cssobj(obj, { onUpdate: pluginCssText(callback).post })\n\nfunction callback(cssText) {\n  // for each result.update\n  // cssText be the whole cssom text of result\n\n  console.log(cssText)\n  // open your console and see the result\n}\n```\n\n### Option 2: as a plugin\n\nIt **must** load after [plugin-cssom](https://github.com/cssobj/cssobj-plugin-cssom).\n\n``` javascript\nvar pluginCssText = require('cssobj-plugin-csstext')\n\nvar result = cssobj(obj)\n\nresult.options.plugins.push( pluginCssText(callback) )\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssobj%2Fcssobj-plugin-csstext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssobj%2Fcssobj-plugin-csstext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssobj%2Fcssobj-plugin-csstext/lists"}