Skip to content

List every possible subpath for a Unix path/URL Pathname

Notifications You must be signed in to change notification settings

hjfitz/subpaths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subpaths

Given any pathname, return every possible subpath!

Usage

import list from 'subpaths'

const paths = list(window.location.pathname) // ['/', '/hjfitz', '/hjfitz/subpaths']

About

List every possible subpath for a Unix path/URL Pathname

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published