Comparing version 0.0.2 to 0.1.0
@@ -25,4 +25,4 @@ var latenize = require('latenize'); | ||
// Normalize name | ||
function name(str) { | ||
return base(str); | ||
function username(str) { | ||
return base(str).replace(/\s+/g, ''); | ||
} | ||
@@ -33,3 +33,3 @@ | ||
module.exports.ascii = ascii; | ||
module.exports.name = name ; | ||
module.exports.username = username; | ||
module.exports.filename = filename; | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "normall", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Normalize ALL things! Useful normalization functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,4 +34,4 @@ NormALL - Normalize all things ! | ||
### normall.name(str) | ||
### normall.username(str) | ||
Normalizes `str` to be used as a username (strips accents, ...) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14946