generic-names
Helper for building generic names, similar to webpack
Last updated a year ago by evilebottnawi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (4 years ago)
  • 2.0.1                                ...           latest (a year ago)

7 Versions

  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.0-beta                                ...           4 years ago
Downloads
Today 25
This Week 3,775
This Month 10,875
Last Day 1,371
Last Week 6,752
Last Month 24,719
Dependencies (1)
Dev Dependencies (1)
Dependents (67)

Copyright 2014 - 2017 © taobao.org |