cssinjs / Cli
Licence: mit
A command line tool for JSS.
Stars: ✭ 54
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Cli
Mssql Cli
A command-line client for SQL Server with auto-completion and syntax highlighting
Stars: ✭ 1,061 (+1864.81%)
Mutual labels: cli
Pitchfork Npm
An Unofficial Pitchfork Music API client for Node.js
Stars: ✭ 50 (-7.41%)
Mutual labels: cli
Serverless Toolkit
CLI tool to develop, debug and deploy Twilio Functions
Stars: ✭ 51 (-5.56%)
Mutual labels: cli
Docker Build Cacher
Builds a service with docker and caches the intermediate stages
Stars: ✭ 53 (-1.85%)
Mutual labels: cli
Git Req
Check out merge requests from your GitLab/GitHub hosted repositories from the command line with just the request number.
Stars: ✭ 50 (-7.41%)
Mutual labels: cli
Pectin
Rollup-related tools for incremental transpilation of packages in Lerna-based monorepos
Stars: ✭ 50 (-7.41%)
Mutual labels: cli
Gomphs
A tool to ping multiple hosts at once with a CLI and web-based overview
Stars: ✭ 54 (+0%)
Mutual labels: cli
Crex
Explore, test, and check regular expressions in the terminal.
Stars: ✭ 54 (+0%)
Mutual labels: cli
Crossline
A small, self-contained, zero-config, MIT licensed, cross-platform, readline and libedit replacement.
Stars: ✭ 53 (-1.85%)
Mutual labels: cli
CLI for JSS
A command line tool for JSS
Convert CSS to JSS
# Convert CSS to JSS with multiline input support
jss convert -m
# Convert css to json
jss convert source.css -f json > source.js
# Convert css to commonjs
jss convert source.css -f js -e cjs > source.js
# Convert css to es6
jss convert source.css -f js -e es6 > source.js
Convert JSS to CSS
You need either to run the cmd tool locally or to install JSS globally, because it will try to require JSS. Also you can specify a path to JSS. Same is about JSS plugins.
# convert jss to css
jss convert source.js -f css > source.css
API
import {cssToJss} from 'jss-cli'
const css = `
.container {
visibility : hidden;
color: black;
}
`
cssToJss({code: css})
Install
npm install jss-cli -g
Issues
File a bug against cssinjs/jss prefixed with [cli].
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].