Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Last active July 21, 2016 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apaleslimghost/0f4ae1a343e231fc6295de21bd8b9ad1 to your computer and use it in GitHub Desktop.
Save apaleslimghost/0f4ae1a343e231fc6295de21bd8b9ad1 to your computer and use it in GitHub Desktop.
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