generic-names
Helper for building generic names, similar to webpack
Last updated 2 years 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 (5 years ago)
  • 2.0.1                                ...           latest (2 years ago)

7 Versions

  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-beta                                ...           5 years ago
Maintainers (1)
Downloads
Today 61
This Week 6,765
This Month 3,964
Last Day 1,907
Last Week 6,528
Last Month 34,505
Dependencies (1)
Dev Dependencies (1)
Dependents (75)

Copyright 2014 - 2016 © taobao.org |