@sidewinder/path
TypeScript icon, indicating that this package has built-in type declarations

0.14.0 • Public • Published

Sidewinder Path

File System Path Utility for Node and the Browser

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'

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @sidewinder/path

      Weekly Downloads

      3

      Version

      0.14.0

      License

      MIT

      Unpacked Size

      14.4 kB

      Total Files

      7

      Last publish

      Collaborators

      • sinclair