JSPM

Found 19 results for slashes

normalize-path

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.

  • v3.0.0
  • 132.24
  • Published

is-absolute

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`.

  • v1.0.0
  • 117.80
  • Published

is-relative

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

  • v1.0.0
  • 113.61
  • Published

unixify

Convert Windows file paths to unix paths.

  • v1.0.0
  • 112.16
  • Published

canonical-path

paths that always use forward slashes

  • v1.0.0
  • 90.06
  • Published

upath2

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

  • v3.1.20
  • 83.00
  • Published

path-starts-with

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

  • v2.0.1
  • 82.42
  • Published

express-slash

Express middleware for people who are anal about trailing slashes.

  • v2.0.1
  • 60.36
  • Published

path-slashes

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

  • v2.0.1
  • 25.38
  • Published

express-slashes

Express middleware that removes trailing slashes

  • v0.1.1
  • 19.89
  • Published

koa-slash

Koa middleware that removes trailing slashes

  • v0.2.0
  • 12.10
  • Published

normalize-slashes

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

  • v1.0.1
  • 11.17
  • Published

has-trailing-slash

Check if a string has trailing slashses easily

  • v1.0.3
  • 7.17
  • Published

strip-trailing-slashes

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

  • v0.1.0
  • 2.77
  • Published

prg-express

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

  • v0.1.1
  • 2.72
  • Published