PHP 8.2.30
Preview: readme.md Size: 678 B
//home/byroehnu/easepay.easetack.com/node_modules/slash/readme.md

# slash

> Convert Windows backslash paths to slash paths: `foo\\bar` ➔ `foo/bar`

[Forward-slash paths can be used in Windows](http://superuser.com/a/176395/6877) as long as they're not extended-length paths.

This was created since the `path` methods in Node.js outputs `\\` paths on Windows.

## Install

```sh
npm install slash
```

## Usage

```js
import path from 'node:path';
import slash from 'slash';

const string = path.join('foo', 'bar');
// Unix    => foo/bar
// Windows => foo\\bar

slash(string);
// Unix    => foo/bar
// Windows => foo/bar
```

## API

### slash(path)

Type: `string`

Accepts a Windows backslash path and returns a path with forward slashes.

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:21
Edit Download
562 B lrw-r--r-- 2026-02-28 00:27:12
Edit Download
181 B lrw-r--r-- 2026-02-28 00:26:42
Edit Download
1.09 KB lrw-r--r-- 2026-02-28 00:26:32
Edit Download
716 B lrw-r--r-- 2026-02-28 00:26:52
Edit Download
678 B lrw-r--r-- 2026-02-28 00:27:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).