2.0.1 • Published 5 years ago

usercss-creator v2.0.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

UserCSS Creator

Create .user.css files easily with Node

Example

Input

// JavaScript:
// const { cssToString } = require('usercss-creator');

// TypeScript:
import { cssToString } from 'usercss-creator';

console.log(
  cssToString(
    'body {\n  color: blue;\n}',
    {
      name: 'Blue Style',
      version: '1.2.3',
      namespace: 'gitlab.com',
      description: 'Generated with UserCSS Creator',
      author: 'UserCSS Creator',
      license: 'MIT'
    }
  )
);

Output

/* ==UserStyle==
@name           Blue Style
@version        1.2.3
@namespace      gitlab.com
@description    Generated with UserCSS Creator
@author         UserCSS Creator
@license        MIT
==/UserStyle== */
body {
  color: blue;
}

License

Licensed under MIT.

2.0.1

5 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago