Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

css-style-inject

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-style-inject

This is a plugin to inject styles to document head dynamically and it checks injections by unique id to prevent style duplication.

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

https://img.shields.io/npm/v/css-style-inject Commitizen friendly semantic-release Dependabot Status https://img.shields.io/npm/l/css-style-inject npm bundle size

CSS Style Injector

Installation

npm

npm i css-style-inject

yarn

yarn add css-style-inject

Usage

Add this to your javascript/ typescript file

attach styles to head

import { injectCSS } from "css-style-inject";
injectCSS('..css', 'uniqueId');

detach styles from head

import { detachCSS } from "css-style-inject";
detachCSS('uniqueId')

Keywords

css

FAQs

Package last updated on 02 Aug 2022

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