Skip to content
 
 

Repository files navigation

path

tests types module semantic versioning Common Changelog install size dependencies license

The path module from Node.js, but agnostic about runtime.

Warning

This implements POSIX style paths only, not windows.

Contents

Install

npm i -S @substrate-system/path

Usage

import { path } from '@susbtrate-system/path'

const filename = 'logo.png';
const logo = path.join('./assets/img', filename);
// => './assets/img/logo.png'
document.querySelector('#logo').src = logo;

API

See the Node.js path docs. @substrate-system/path currently matches the Node.js 10.3 API. @substrate-system/path only implements the POSIX functions, not the win32 ones.

License

MIT

About

The path module from Node.js for browsers

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages