Socket
Book a DemoInstallSign in
Socket

css-jojo

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-jojo

Generate random CSS

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Generate random CSS declarations

How?

import {getRandomRuleset} from 'css-jojo';

// generate 1000 1-line (1 declaration each) rules, 5 chars classnames, non-pretty
for (let i = 0; i < 1000; i++) {
  console.log(getRandomRuleset(1, 5, false));  
}

This results in:

.fjvdc {max-width: 10px}
.w21w8 {margin-bottom: 8px}
.qhe4f {outline-radius: 1px}
.rkgiq {font-style: oblique 45deg}
...

Why?

You know, for testing.

Keywords

css

FAQs

Package last updated on 07 Feb 2019

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