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 181
This Week 5,061
This Month 14,374
Last Day 293
Last Week 4,091
Last Month 23,065
Dependencies (1)
Dev Dependencies (1)
Dependents (64)

Copyright 2014 - 2016 © taobao.org |