Search results

19 packages found

Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.

published version 3.0.0, 7 years ago3049 dependents licensed under $MIT
307,120,844

Returns `true` if the path appears to be relative.

published version 1.0.0, 8 years ago477 dependents licensed under $MIT
30,004,321

Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.

published version 1.0.0, 8 years ago464 dependents licensed under $MIT
30,700,014

Convert Windows file paths to unix paths.

published version 1.0.0, 8 years ago138 dependents licensed under $MIT
18,870,079

removes trailing slashes

published version 0.1.1, 5 years ago96 dependents licensed under $MIT
7,365,412

paths that always use forward slashes

published version 1.0.0, 7 years ago62 dependents licensed under $MIT
1,725,052

A proxy to `path`, replacing `\` with `/` for all results

published version 3.1.20, 9 months ago78 dependents licensed under $ISC
357,223

Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.

published version 2.0.1, 2 years ago12 dependents licensed under $MIT
219,482

Express middleware for people who are anal about trailing slashes.

published version 2.0.1, 11 years ago24 dependents
11,858

Remove leading slashes from a given string

published version 2.0.0, a year ago5 dependents licensed under $MIT
1,560

Adding or removing of trailing and/or leading slashes in strings, test for their existence or join strings with slashes without duplicating them.

published version 2.0.1, 2 years ago0 dependents licensed under $MIT
82

Add or remove trailing slashes.

published version 0.3.0, 8 years ago6 dependents licensed under $GPL-3.0
79

Express middleware that removes trailing slashes

published version 0.1.1, 9 years ago1 dependents licensed under $MIT
39

Checks for the presence of URL protocol without a slashes (colon-slash-slash)

published version 2.0.0, 6 years ago0 dependents licensed under $MIT
32

Check if a string has trailing slashses easily

published version 1.0.3, 8 years ago0 dependents licensed under $MIT
16

Normalize paths to by adding or removing beginning and/or end slashes

published version 1.0.1, 8 years ago2 dependents licensed under $MIT
15

Express utitlities for automatic https redirects, slash forcing, logging, error handling and Handlebars templating

published version 0.1.1, 8 years ago0 dependents licensed under $MIT
9

A function that removes all slashes from the end of a string.

published version 0.1.0, 8 years ago1 dependents licensed under $BSD-3-Clause
8

Koa middleware that removes trailing slashes

published version 0.2.0, 9 years ago0 dependents licensed under $MIT
7