Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fsrouter/core/slug.ts>Slug

A file system based router for Deno.
Latest
class Slug
import { Slug } from "https://deno.land/x/fsrouter@3.1.0/core/slug.ts";

Constructors

new
Slug(slugFromPath: string)

Properties

readonly
hasType: boolean
readonly
raw: string
rawWithType: string
readonly
regEx: string
readonly
type: "string" | "number" | null

Static Methods

isSlug(part: string): boolean