{"id":16691426,"url":"https://github.com/bbonkr/css-to-jss","last_synced_at":"2026-04-12T07:32:38.672Z","repository":{"id":49417454,"uuid":"316495158","full_name":"bbonkr/css-to-jss","owner":"bbonkr","description":"Make JSS file from CSS file","archived":false,"fork":false,"pushed_at":"2021-06-18T12:38:27.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T19:49:21.283Z","etag":null,"topics":["css","file-tools","generator","jss","node-cli","npm","npm-cli","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/bbonkr.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":"2020-11-27T12:26:29.000Z","updated_at":"2021-06-18T12:37:48.000Z","dependencies_parsed_at":"2022-07-26T18:02:16.580Z","dependency_job_id":null,"html_url":"https://github.com/bbonkr/css-to-jss","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bbonkr/css-to-jss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbonkr%2Fcss-to-jss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbonkr%2Fcss-to-jss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbonkr%2Fcss-to-jss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbonkr%2Fcss-to-jss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbonkr","download_url":"https://codeload.github.com/bbonkr/css-to-jss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbonkr%2Fcss-to-jss/sbom","scorecard":{"id":228029,"data":{"date":"2025-08-11","repo":{"name":"github.com/bbonkr/css-to-jss","commit":"3b9963bfceb61fd82a710c0f94926cc862fc5ceb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-and-tag.yml:1","Warn: no topLevel permission defined: .github/workflows/publish-npm.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-tag.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/bbonkr/css-to-jss/build-and-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-tag.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/bbonkr/css-to-jss/build-and-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-tag.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/bbonkr/css-to-jss/build-and-tag.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-tag.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/bbonkr/css-to-jss/build-and-tag.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-npm.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/bbonkr/css-to-jss/publish-npm.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-npm.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/bbonkr/css-to-jss/publish-npm.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build-and-tag.yml:25","Warn: npmCommand not pinned by hash: .github/workflows/publish-npm.yml:31","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T04:12:11.329Z","repository_id":49417454,"created_at":"2025-08-17T04:12:11.330Z","updated_at":"2025-08-17T04:12:11.330Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31707953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","file-tools","generator","jss","node-cli","npm","npm-cli","typescript"],"created_at":"2024-10-12T16:08:25.969Z","updated_at":"2026-04-12T07:32:38.653Z","avatar_url":"https://github.com/bbonkr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS to JSS\n\n[![](https://shields.io/npm/v/@bbon/css-to-jss)](https://www.npmjs.com/package/@bbon/css-to-jss) [![](https://shields.io/npm/dt/@bbon/css-to-jss)](https://www.npmjs.com/package/@bbon/css-to-jss) [![Build and tag](https://github.com/bbonkr/css-to-jss/actions/workflows/build-and-tag.yml/badge.svg)](https://github.com/bbonkr/css-to-jss/actions/workflows/build-and-tag.yml) [![publish NPM](https://github.com/bbonkr/css-to-jss/actions/workflows/publish-npm.yml/badge.svg)](https://github.com/bbonkr/css-to-jss/actions/workflows/publish-npm.yml)\n\nMake JSS component `(jsx|tsx)` file from CSS file in your project.\n\nRun this nodejs cli app in your terminal.\n\nCSS file looks below.\n\n```css\n.sample-css {\n    color: #ffffff;\n}\n```\n\nThen (jsx|tsx) looks like.\n\n````typescript\n/**\n * Auto-generated JSS file by css-to-jss\n *\n * [@bbon/css-to-jss](https://www.npmjs.com/package/@bbon/css-to-jss)\n *\n * usage:\n * ```\n * import { otherStyle } from './other.style'\n *\n * \u003cstyle jsx\u003e{otherStyle}\u003c/style\u003e\n * ```\n */\nimport React from 'react';\nimport css from 'styled-jsx/css';\n\nexport const otherStyle = css`\n    .sample-css {\n        color: #ffffff;\n    }\n`;\n\n/**\n * Not working currently\n */\nconst OtherStyle = () =\u003e {\n    return \u003cstyle jsx\u003e{otherStyle}\u003c/style\u003e;\n};\n\nexport default OtherStyle;\n````\n\n## Installation\n\n```bash\n$ npm i --save-dev @bbon/css-to-jss\n```\n\nor\n\n```bash\n$ yarn add --save-dev @bbon/css-to-jss\n```\n\n## Specification\n\n```bash\n$ css-to-jss help\nUsage: css-to-jss [options] [command]\n\nMake JSS React Component from CSS files.\n\nOptions:\n  -v, --version                      Display version\n\nCommands:\n  list [options] \u003csource\u003e [prefix]   Check the list of files to be processing.\n  write [options] \u003csource\u003e [prefix]  Make JSS component file from CSS file.\n  help                               Display help for css-to-jss\n```\n\n### list command\n\nCheck the list of files to be processed.\n\n```bash\n$ css-to-jss list --help\nUsage: css-to-jss list [options] \u003csource\u003e [prefix]\n\nCheck the list of files to be processing.\n\nArguments:\n  source            [Required] Set to start location where css files search.\n  prefix            [Optional] Set react component file name postfix when files search. default: \"style\"\n\nOptions:\n  -f, --force       Overwrite file\n  -t, --typescript  Use Typescript (tsx)\n  -r, --recursive   Explore recursive from current directory.\n  --verbose         Display detailed information.\n  --debug           Display debug information\n  -h, --help        display help for command\n```\n\nUsage:\nDisplay list of task information that will create JSS file from CSS file in current directory.\nAnd the task will overwrite created TSX files on exists TSX files.\n\n```bash\n$ css-to-jss list . style --typescript --recursive --force\n```\n\n### write command\n\nMake JSS file from CSS file.\n\n```bash\n$ css-to-jss write --help\nUsage: css-to-jss write [options] \u003csource\u003e [prefix]\n\nMake JSS component file from CSS file.\n\nArguments:\n  source            [Required] Set to start location where css files search.\n  prefix            [Optional] Set react component file name postfix when files create. default: \"style\"\n\nOptions:\n  -f, --force       Overwrite file\n  -t, --typescript  Use Typescript (tsx)\n  -r, --recursive   Explore recursive from current directory.\n  --verbose         Display detailed information.\n  --debug           Display debug information\n  -h, --help        display help for command\n```\n\nUsage:\nMake JSS file from CSS file in current directory.\nAnd overwrite created TSX files on exists TSX files.\n\n```bash\n$ css-to-jss write . style --typescript --recursive --force\n```\n\n## Execute css-to-jss\n\n### Install globally\n\nInstall like this.\n\n```bash\n$ npm i -g @bbon/css-to-jss\n```\n\nExecute like this.\n\n```bash\n$ css-to-jss list src style -t -r\n```\n\n### Install locally\n\nInstall like this.\n\n```bash\n$ npm i @bbon/css-to-jss --save-dev\n```\n\nExecute like this.\n\n```bash\n$ npx css-to-jss list src style -t -r\n```\n\n## Usage\n\nimport created style.(tsx|jsx) in your component.\n\n\u003e May requires [styled-jsx](https://github.com/vercel/styled-jsx) or [next.js](https://nextjs.org/)\n\u003e\n\u003e Please install @types/styled-jsx package if use typescript with next.js or styled-jsx.\n\n```typescript\nimport { otherStyle } from './other.style';\n\nconst MyComponent = () =\u003e {\n    return (\n        \u003cdiv className=\"hello-world\"\u003e\n            \u003ch1\u003eHello world!\u003c/h1\u003e\n            \u003cstyle jsx\u003e{otherStyle}\u003c/style\u003e\n        \u003c/div\u003e\n    );\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbonkr%2Fcss-to-jss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbonkr%2Fcss-to-jss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbonkr%2Fcss-to-jss/lists"}