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 ago2839 dependents licensed under $MIT
386,130,907

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

published version 1.0.0, 8 years ago438 dependents licensed under $MIT
36,650,728

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 ago429 dependents licensed under $MIT
35,682,058

Convert Windows file paths to unix paths.

published version 1.0.0, 8 years ago133 dependents licensed under $MIT
20,576,424

removes trailing slashes

published version 0.1.1, 5 years ago88 dependents licensed under $MIT
6,288,021

paths that always use forward slashes

published version 1.0.0, 7 years ago63 dependents licensed under $MIT
2,050,477

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

published version 3.1.20, 10 months ago73 dependents licensed under $ISC
527,485

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

published version 2.0.1, 2 years ago8 dependents licensed under $MIT
377,237

Remove leading slashes from a given string

published version 2.0.0, 2 years ago5 dependents licensed under $MIT
8,959

Express middleware for people who are anal about trailing slashes.

published version 2.0.1, 11 years ago24 dependents
8,308

Add or remove trailing slashes.

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

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
37

Express middleware that removes trailing slashes

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

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

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

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
19

Check if a string has trailing slashses easily

published version 1.0.3, 9 years ago0 dependents licensed under $MIT
10

Koa middleware that removes trailing slashes

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

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
11

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

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