UNPKG

ensure-posix-path

Version:

[![Build Status](https://travis-ci.org/stefanpenner/ensure-posix-path.svg)](https://travis-ci.org/stefanpenner/ensure-posix-path) [![Build status](https://ci.appveyor.com/api/projects/status/bt015k54b2ohk1oi?svg=true)](https://ci.appveyor.com/project/embe

9 lines (8 loc) 201 B
"use strict"; var path = require("path"); module.exports = function ensurePosix(filepath) { if (path.sep !== '/') { return filepath.split(path.sep).join('/'); } return filepath; };