JSPM

path-pony

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 58
    • Score
      100M100P100Q71045F
    • License MIT

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

    Package Exports

    • path-pony

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (path-pony) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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