generic-names

WebJar for generic-names

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

generic-names
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

generic-names
WebJar for generic-names
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/css-modules/generic-names

Download generic-names

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : loader-utils jar [1.1.0,2)

Project Modules

There are no modules declared in this project.

generic-names

Helper for building generic names, similar to webpack. Designed to be used with postcss‑modules‑scope.

Uses interpolateName from the webpack/loader-utils.

API

var genericNames = require('generic-names');
var generate = genericNames('[name]__[local]___[hash:base64:5]', {
  context: process.cwd()
});

generate('foo', '/case/source.css'); // 'source__foo___3mRq8'
org.webjars.npm

Versions

Version
2.0.1
1.0.3