style-inject

WebJar for style-inject

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

style-inject
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

style-inject
WebJar for style-inject
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/egoist/style-inject

Download style-inject

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

style-inject

NPM version NPM downloads CircleCI donate chat

Inject style tag to document head.

Installation

npm install style-inject

Example

import styleInject from 'style-inject';
const css = `
  body {
    margin: 0;
  }
`;
styleInject(css, options);

Options

insertAt

Type: string
Possible values: top
Default: undefined

Insert style tag to specific position of head element.

License

MIT © EGOIST

Versions

Version
0.3.0
0.2.1