{"id":13659461,"url":"https://github.com/dvtng/jss","last_synced_at":"2026-03-11T19:31:31.882Z","repository":{"id":57286326,"uuid":"1372820","full_name":"dvtng/jss","owner":"dvtng","description":"JavaScript library for getting and setting CSS stylesheet rules","archived":false,"fork":false,"pushed_at":"2017-10-19T13:25:13.000Z","size":83,"stargazers_count":337,"open_issues_count":19,"forks_count":55,"subscribers_count":20,"default_branch":"master","last_synced_at":"2026-01-14T04:32:39.758Z","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/dvtng.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2011-02-16T06:47:18.000Z","updated_at":"2025-05-01T03:05:27.000Z","dependencies_parsed_at":"2022-08-31T03:00:49.823Z","dependency_job_id":null,"html_url":"https://github.com/dvtng/jss","commit_stats":null,"previous_names":["box9/jss"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dvtng/jss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fjss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fjss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fjss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fjss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvtng","download_url":"https://codeload.github.com/dvtng/jss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvtng%2Fjss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30395595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: 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":[],"created_at":"2024-08-02T05:01:08.983Z","updated_at":"2026-03-11T19:31:31.866Z","avatar_url":"https://github.com/dvtng.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# JSS\n\nA simple JavaScript library for retrieving and setting CSS stylesheet rules.\n\n* Tiny - only 4KB minified\n* No dependencies\n* MIT Licensed\n* Supports FF, Chrome, Safari, Opera, and IE9+\n\nWhy generate CSS with JavaScript?\n\n* To set styles that need to be calculated or retrieved\n* To set behavioural styles for your widget or plugin so that consumers aren't forced to include a stylesheet for core functionality\n* To dynamically apply styles without cluttering your HTML (as is the case with inline styles)\n* To set styles on all current and future elements\n\n## Usage\n\nDownload and include `jss.js` (or the minified file) in your HTML:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"jss.js\"\u003e\u003c/script\u003e\n```\n\nIf your project uses Bower for package management you can run the following command instead:\n\n    bower install jss\n\n**jss.set(selector, properties)** to add a new rule or extend an existing rule:\n\n```js\njss.set('.demo', {\n    'font-size': '15px',\n    'color': 'red'\n});\n```\n\n**jss.get([selector])** to retrieve rules added via JSS:\n\n```js\njss.get('.demo');\n// returns the following:\n{\n    'font-size': '15px',\n    'color': 'red'\n}\n    \njss.get();\n// returns the following:\n{\n    '.demo': {\n        'font-size': '15px',\n        'color': 'red'\n    }\n}\n```    \n\n**jss.getAll(selector)** to retrieve all rules that are specified using the selector (not necessarily added via JSS):\n\n```js\njss.getAll('.demo');\n// returns the following:\n{\n    'font-size': '15px',\n    'color': 'red',\n    'font-weight': 'bold'\n}\n```\n\n**jss.remove([selector])** to remove rules added via JSS:\n\n```js\njss.remove('.demo'); // removes all JSS styles matching the selector\njss.remove();        // removes all JSS styles\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvtng%2Fjss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvtng%2Fjss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvtng%2Fjss/lists"}