{"id":14990685,"url":"https://github.com/stackr23/styleobjects","last_synced_at":"2026-01-05T04:43:54.472Z","repository":{"id":57162342,"uuid":"156551396","full_name":"stackr23/styleobjects","owner":"stackr23","description":"load stylesheets as js-objects","archived":false,"fork":false,"pushed_at":"2020-05-01T04:33:16.000Z","size":83,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T03:03:24.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/@stackr23/styleobjects","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackr23.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":"2018-11-07T13:35:12.000Z","updated_at":"2019-06-12T21:38:30.000Z","dependencies_parsed_at":"2022-09-10T07:01:03.918Z","dependency_job_id":null,"html_url":"https://github.com/stackr23/styleobjects","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackr23%2Fstyleobjects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackr23%2Fstyleobjects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackr23%2Fstyleobjects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackr23%2Fstyleobjects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackr23","download_url":"https://codeload.github.com/stackr23/styleobjects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244888532,"owners_count":20526823,"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-09-24T14:20:35.419Z","updated_at":"2026-01-05T04:43:54.447Z","avatar_url":"https://github.com/stackr23.png","language":"JavaScript","readme":"# @stackr23/styleobjects\n\u003e transform stylesheets to JS objects\n\n[![Build Status](https://travis-ci.com/stackr23/styleobjects.svg?branch=master)](https://travis-ci.com/stackr23/styleobjects)\n[![npm version](https://badge.fury.io/js/%40stackr23%2Fstyleobjects.svg?v140)](http://npm.im/@stackr23/styleobjects) [![Greenkeeper badge](https://badges.greenkeeper.io/stackr23/styleobjects.svg)](https://greenkeeper.io/)\n[![Maintenance][maintenance-img]][maintenance-url]\n[![PRs Welcome][pr-welcome]](http://makeapullrequest.com)\n\n[maintenance-img]: https://img.shields.io/badge/Maintained%3F-yes-green.svg\n[maintenance-url]: https://GitHub.com/stackR23/styleobjects/graphs/\n[pr-welcome]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\n\n__style.css__\n```css\n.test   { font-size: 20px; }\n.test23 { padding-top: 5px; }\n.test23 .testInner { font-decoration: none; }\n```\n\n__output.js__\n```javascript\n{\n    test:   {'fontSize': '20px'},\n    test23: {\n        'fontSize': '23px',\n        testInner: {'fontDecoration': 'none'}\n    }\n}\n```\n\n## CLI usage\n\n```bash\nnpm install -g @stackr23/styleobjects  \nnpx @stackr/styleobjects --input ./style.css --output ./output.js\n```\n\n__--input__\u0026nbsp;\u0026nbsp;\u0026nbsp;- {`String:path` | `String` | `URL` | `Buffer`} - __required__  \n__--outout__\u0026nbsp;- {`String:path`}\n\n## webpack usage\n\u003e __[@stackr/styleobjects-loader](https://github.com/stackr23/styleobjects-loader)__\n\n## v2 roadmap  \n* [ ] ? add eslint\n* [x] refactor core\n    * [x] handle subclasses recursively  \n    * [ ] issue #3\n    * [x] ES7\n        * [x] @babel/register\n        * [x] build into /dist\n        * [ ] refactor build process (rollup? backpack?)\n* [x] mocha tests \n    * [x] unit tests \n    * [x] test /bin\n* [ ] proper option handling\n    * [x] add yargs\n    * [ ] --output-type as (json | module | echo)\n\n## inspiration\n* [nativeCSS](https://github.com/raphamorim/native-css)  \n* [css-objects-loader](https://github.com/pl12133/css-object-loader)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackr23%2Fstyleobjects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackr23%2Fstyleobjects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackr23%2Fstyleobjects/lists"}