How to use the url-slug function in url-slug

To help you get started, we’ve selected a few url-slug examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github modularcode / modular-admin-react / src / client / _state / items / selectors.js View on Github external
export const getPlaceUrl = (place) => {
  if (!place) {
    return "";

  const {
  } = place;

  const slug = urlSlug(name);

  return `/places/${placeId}-${slug}`;


Slug generator with less than 1 KB and no dependencies, RFC 3986 compliant

Latest version published 10 months ago

Package Health Score

63 / 100
Full package analysis

Popular url-slug functions