@substrate-system/path
v1.0.10
Published
the path module from node
Readme
path
The path module from Node.js, but agnostic about runtime.
[!WARNING]
This implements POSIX style paths only, not windows.
Install
npm i -S @substrate-system/pathUsage
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.
