1.0.10 • Published 8 months ago
@substrate-system/path v1.0.10
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/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.