jsonss

1.3.0 • Public • Published
JSONSS logo

Forthebadge made with TS Forthebadge uses JS

Github License NPM version Github Releases NPM downloads Github workflow status workflow status
Codacy Badge maintainability

JavaScript Object Notated Style Sheets. Created so developers don't need to learn SCSS, and can rely on JS, JSON, and CSS instead

Usage

JSONSS allows you to use JavaScript loops, functions, and variables, and JSON to create CSS. Just write JavaScript code, and we do the converting and formatting for you.

Installation

NPM

In terminal, type

# npm install jsonss --save-dev 
npm i jsonss --save-dev
 
# If you prefer Yarn 
yarn add jsonss -D

If for whatever reason you want to use Github Packages, you can use

# npm install @luke-zhang-04/jsonss --save-dev 
npm i @luke-zhang-04/jsonss --save-dev

GitHub

Download the latest release here or clone through command line

git clone --depth=1 https://github.com/Luke-zhang-04/JSONSS.git

Curl

If you for some reason want to install with Curl (or Wget or something), the command is as follows

curl -L https://github.com/Luke-zhang-04/JSONSS/archive/<VERSION_NAME>.tar.gz | tar zx # Download file 
mv JSONSS-<VERSION_NAME> JSONSS/ # Rename folder to just JSONSS 

E.g

curl -L https://github.com/Luke-zhang-04/JSONSS/archive/v1.3.0.tar.gz | tar zx
mv JSONSS-1.3.0 JSONSS

I would strongly recommend using a package manager such as NPM or Yarn, however.

Invocation

You can invoke JSONSS with

npx jsonss [file1] [file2] <options>

Help

Thanks to Commander, you can get help with the command:

# npx jsonss --help 
npx jsonss -h
Usage: jsonss [options]
 
Options:
  -nol --nolint  Don't check for for CSS errors
  -d --debug     display output log
  -p --pretty    pretty print
  -h, --help     display help for command

E.g

npx jsonss example/example.js example/styles.css -d -pretty

License notice

Even though this program is licensed under the GNU General Public License, any output from this program is NOT under the terms of the license. Only the source code of this tool is licensed under GPL. As long as your production build is not dependent on this tool, the terms of this license do not apply.
To quote GNU.org,

The output of a program is not, in general, covered by the copyright on the code of the program. So the license of the code of the program does not apply to the output, whether you pipe it into a file, make a screenshot, screencast, or video.

The exception would be when the program displays a full screen of text and/or art that comes from the program. Then the copyright on that text and/or art covers the output. Programs that output audio, such as video games, would also fit into this exception.

If the art/music is under the GPL, then the GPL applies when you copy it no matter how you copy it. However, fair use may still apply.

Keep in mind that some programs, particularly video games, can have artwork/audio that is licensed separately from the underlying GPLed game. In such cases, the license on the artwork/audio would dictate the terms under which video/streaming may occur.

Package Sidebar

Install

npm i jsonss

Weekly Downloads

1

Version

1.3.0

License

GPL-3.0

Unpacked Size

93.1 kB

Total Files

17

Last publish

Collaborators

  • luke-zhang-04