Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

path-pony

leichtgewicht2.4kMIT1.0.0

Ponyfill that uses path or path-browserify depending on the environment.

ponyfill, path, react-native, browser

readme

path-pony

Small ponyfill to use node's path module in browsers, node or react-native.

Usage

const path = require('path-pony')
path.sep // separator

Motivation

The node path package doesn't work for browser, this is fixed by npm package path-browserify, but which in-turn doesn't work for node. This module is a "ponyfill" for path that works as-is in node or the browser ... or react-native for that matter.

License

MIT