insert-css

WebJar for insert-css

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

insert-css
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

insert-css
WebJar for insert-css
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/substack/insert-css

Скачать insert-css

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/insert-css/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>insert-css</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/insert-css/
implementation 'org.webjars.npm:insert-css:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/insert-css/
implementation ("org.webjars.npm:insert-css:2.0.0")
'org.webjars.npm:insert-css:jar:2.0.0'
<dependency org="org.webjars.npm" name="insert-css" rev="2.0.0">
  <artifact name="insert-css" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='insert-css', version='2.0.0')
)
libraryDependencies += "org.webjars.npm" % "insert-css" % "2.0.0"
[org.webjars.npm/insert-css "2.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

NPM version

insert-css

insert a string of css into the <head>

browser support

example

    var insertCss = require('insert-css');
    var styleElement = insertCss('body { background:blue; }');

api

    var insertCss = require('insert-css');

var styleElement = insertCss(css, opts);

Insert some CSS into the page.

  • opts.container - Which HTMLElement to use as the base mounting point, defaults to document.querySelector('head').

  • opts.prepend - Add the CSS at the top level of the container instead of at the bottom level (default).

This is particullary useful for library creators where you may want your default CSS to be prepended so it can be easily overriden by user styles.

development

example

npm run example

test

npm test

Версии библиотеки

Версия
2.0.0