generic-names
Helper for building generic names, similar to webpack
Last updated 3 years ago by evilebottnawi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install generic-names 
SYNC missed versions from official npm registry.

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'

Current Tags

  • 1.0.0-beta                                ...           beta (9 years ago)
  • 4.0.0                                ...           latest (3 years ago)

9 Versions

  • 4.0.0                                ...           3 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 1.0.0-beta                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

Copyright 2013 - present © cnpmjs.org | Home |