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 ago2987 dependents licensed under $MIT
278,281,485

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

published version 1.0.0, 8 years ago478 dependents licensed under $MIT
30,601,603

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 ago465 dependents licensed under $MIT
30,190,720

Convert Windows file paths to unix paths.

published version 1.0.0, 8 years ago138 dependents licensed under $MIT
17,515,641

removes trailing slashes

published version 0.1.1, 5 years ago96 dependents licensed under $MIT
7,383,777

paths that always use forward slashes

published version 1.0.0, 6 years ago62 dependents licensed under $MIT
1,580,451

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

published version 3.1.20, 7 months ago78 dependents licensed under $ISC
329,393

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
216,297

Express middleware for people who are anal about trailing slashes.

published version 2.0.1, 11 years ago24 dependents
8,137

Remove leading slashes from a given string

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

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
95

Add or remove trailing slashes.

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

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
43

Express middleware that removes trailing slashes

published version 0.1.1, 8 years ago1 dependents licensed under $MIT
44

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

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

Check if a string has trailing slashses easily

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

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
5

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
5

Koa middleware that removes trailing slashes

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