🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

path-browser-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-browser-wrapper

A wrapper module to allow NodeJS ’path’ module to execute in the browser context.

1.0.2
latest
Source
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Path Browser Wrapper

A wrapper module to allow NodeJS path module to execute in the browser context.

Description

This module is a modified wrapper around the NodeJS path library. This is not a reimplementation of the path library. The advantage is that the path library API is unlikely to change and any bugs in the path library itself will be fixed by an active community working on the core modules.

This module exposes the methods which work in the browser context and utilizes the same to bypass calls to process module which is used to, among other things, differentiate between win32 and posix.

Here's a list of methods available to use:

  • normalize
  • isAbsolute
  • join
  • dirname
  • basename
  • extname
  • format
  • parse

Keywords

path

FAQs

Package last updated on 31 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts