Skip to content

ThaUnknown/path-esm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

path-esm

The path module from Node.js for browsers, in a tree-shakeable ESM form.

This implements the Node.js path module for environments that do not have it, like browsers.

Install

npm install path-esm

Usage

import path from 'path'

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

API

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

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published