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

8 Versions

  • 3.0.0                                ...           7 hours ago
  • 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 185
This Week 32,187
This Month 92,607
Last Day 2,722
Last Week 32,894
Last Month 148,646
Dependencies (1)
Dev Dependencies (1)
Dependents (83)

Copyright 2014 - 2016 © taobao.org |