@sidewinder/path
v0.14.0
Published
Sidewinder Path
Downloads
67
Readme
Overview
This package provides NodeJS pathing utilities that work in Browser environments. It mirrors the NodeJS core path
module.
import { Path } from '@sidewinder/path'
const dirname = Path.dirname('/directory/file.txt') // '/directory'
const basename = Path.basename('/directory/file.txt') // 'file.ext'
const extname = Path.extname('/directory/file.txt') // '.txt'
const joined = Path.join(dirname, basename) // '/directory/file.txt'