Nincompoops Producing Methane
    Have ideas to improve npm?Join in the discussion! »

    @tiddo/insert-css

    1.0.0 • Public • Published

    Small module for inserting CSS rules from Javascript

    Requirements

    This module is intended to be used in a modern JS environment (es6 + async functions).

    Usage

    import insertCss from '@tiddo/insertCss';
     
    async function init() {
        await insertCss(`
            h1 {
                font-size: 20px;
            }
        `);
    }
     
    init();

    Keywords

    none

    Install

    npm i @tiddo/insert-css

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar