New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sssa

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sssa

A toy CSS preprocessor implementation with SASS like grammar.

latest
npmnpm
Version
0.4.1
Version published
Maintainers
1
Created
Source

SSSA

A toy CSS preprocessor implementation with SASS like grammar.

Software License Issues JavaScript Style Guide NPM

Usage

CLI

npm i sssa -g

# examples
sssa --help
cat file.sssa | sssa
echo '.a { .b { color: red; } }' | sssa

NodeJS

import { compile } from 'sssa';

const {
  tokens,
  ast,
  code,
} = compile('b {}', opts);

Options

  • opts.scan Only proceed tokenize and return tokens;
  • opts.parse Proceed tokenize and generate corresponding ast;
  • opts.transform Transform SSSA ast to CSS ast;

Develop

# install deps
npm install

# build app
npm run build

# build & watch app
npm run watch

# build & launch app
npm run start

# run unit test
npm run test

License

© BinRui Guan

Keywords

rollup

FAQs

Package last updated on 19 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts