Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The path module from Node.js for browsers

License

NotificationsYou must be signed in to change notification settings

isomorphic-git/path-browserify

 
 

Repository files navigation

Thepath module from Node.js for browsers

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

path-browserify currently matches theNode.js 10.3 API.

Install

npm install @isomorphic-git/path-browserify

Usage

importpathfrom'@isomorphic-git/path-browserify';constfilename='logo.png';constlogo=path.join('./assets/img',filename);document.querySelector('#logo').src=logo;

Methods underpath can be imported individually.

import{join}from'@isomorphic-git/path-browserify';

If your project uses CommonJS, this is also supported.

constpath=require('@isomorphic-git/path-browserify');

API

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

Contributing

PRs are very welcome! The main way to contribute topath-browserify is by porting features, bugfixes and tests from Node.js. Ideally, code contributions to this module are copy-pasted from Node.js and transpiled to ES5, rather than reimplemented from scratch. Matching the Node.js code as closely as possible makes maintenance simpler when new changes land in Node.js.This module intends to provide exactly the same API as Node.js, so features that are not available in the corepath module will not be accepted. Feature requests should instead be directed atnodejs/node and will be added to this module once they are implemented in Node.js.

If there is a difference in behaviour between Node.js'spath module and this module, please open an issue!

License

MIT

About

The path module from Node.js for browsers

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp