2.0.1 • Published 5 years ago
usercss-creator v2.0.1
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.