{"id":18318899,"url":"https://github.com/axept/prejss-cli","last_synced_at":"2025-04-05T21:33:21.608Z","repository":{"id":57329762,"uuid":"83917734","full_name":"axept/prejss-cli","owner":"axept","description":"CLI for PreJSS - get ES6 modules with JSS styles from CSS/SCSS/LESS styles or CSS frameworks","archived":false,"fork":false,"pushed_at":"2017-04-12T14:01:04.000Z","size":22,"stargazers_count":12,"open_issues_count":2,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-20T22:08:34.114Z","etag":null,"topics":["cli","cli-app","converter","css-in-js","jss","prejss"],"latest_commit_sha":null,"homepage":"https://github.com/axept/prejss","language":"JavaScript","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/axept.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":"2017-03-04T19:07:10.000Z","updated_at":"2025-01-08T15:53:33.000Z","dependencies_parsed_at":"2022-09-06T20:30:36.200Z","dependency_job_id":null,"html_url":"https://github.com/axept/prejss-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axept%2Fprejss-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axept%2Fprejss-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axept%2Fprejss-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axept%2Fprejss-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axept","download_url":"https://codeload.github.com/axept/prejss-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406076,"owners_count":20933803,"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":["cli","cli-app","converter","css-in-js","jss","prejss"],"created_at":"2024-11-05T18:11:52.733Z","updated_at":"2025-04-05T21:33:21.252Z","avatar_url":"https://github.com/axept.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"prejss-cli\n====\n\n[![Travis branch](https://img.shields.io/travis/axept/prejss-cli/master.svg?style=flat-square)](https://travis-ci.org/axept/prejss-cli)\n[![npm version](https://img.shields.io/npm/v/prejss-cli.svg?style=flat-square)](https://www.npmjs.com/package/prejss-cli)\n[![npm downloads](https://img.shields.io/npm/dt/prejss-cli.svg?style=flat-square)](https://www.npmjs.com/package/prejss-cli)\n[![npm license](https://img.shields.io/npm/l/prejss-cli.svg?style=flat-square)](https://www.npmjs.com/package/prejss-cli)\n\nCommand-Line Interface (CLI) interface for converting CSS/SCSS/LESS/other files to ES6 modules with JSS objects or to JSON files using any [PreJSS](https://github.com/axept/prejss) parser and config.\n\n## Examples\n\n```bash\n# Convert CSS file to JSON in current directory\nprejss-cli -f json source.css --pretty\n\n\n# Convert CSS file to ES6 in current directory\nprejss-cli source.css\n\n\n# Convert all CSS in specified directory to ES6 in ./examples/dist\nprejss-cli examples/src --out-dir ./examples/dist\n\n\n# Convert CSS in specified directory to ES6 in the same directory\n# using specified parser (which should be installed as prejss-NAME-parser package)\n\nnpm install -g prejss-postcss-parser\n\nprejss-cli examples/src --parser postcss\n\n\n# Convert SCSS files only in specified directory to ES6 modules with JSS objects\n# using specified parser and config\n\nnpm install -g postcss-import postcss-simple-vars postcss-sassy-mixins\n\nprejss-cli bootstrap/v4-dev/scss/**/*.scss --parser postcss --out-dir ./bootstrap4-jss \\\n  --config plugins=postcss-import,postcss-simple-vars,postcss-sassy-mixins\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxept%2Fprejss-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxept%2Fprejss-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxept%2Fprejss-cli/lists"}