Last active
July 21, 2016 16:34
-
-
Save apaleslimghost/0f4ae1a343e231fc6295de21bd8b9ad1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const paramCase = require('param-case'); | |
module.exports = word => paramCase(word.replace(/\s*female|♀/, '-f').replace(/\s*male|♂/, '-m').replace(/[^\w\s]/g, '')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment