normalize-name
v1.0.1
Published
Normalizes a variable name.
Downloads
601
Readme
normalize-name
Installation
$ npm i normalize-name -S
Usage
var normalizeName = require('normalize-name')
normalizeName('normalize-name') // normalize_name
normalizeName('README.md') // README_md
normalizeName('3rd party') // _3rd_party
normalizeName('_a__b___c_') // a_b_c
License
MIT