Displaying 1 to 7 from 7 results

remove-trailing-separator - Removes all separators from the end of a string.

  •    Javascript

Removes all separators from the end of a string. \ is considered a separator only on WIN32 systems. All POSIX compliant systems see backslash as a valid file name character, so it would break POSIX compliance to remove it there.

connect-slashes - Slash redirects for Connect

  •    Javascript

Trailing slash redirect middleware for Connect and Express.js. Useful for creating canonical urls in your Node.js applications.

normalize-path - Normalize file path slashes to be unix-like forward slashes.

  •    Javascript

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. Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.




unixify - Convert a windows file path to a unix-style file path.

  •    Javascript

Convert Windows file paths to unix paths. Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

express-slash - Express middleware for people who are anal about trailing slashes.

  •    Javascript

Express middleware for people who are anal about trailing slashes. This Express middleware should come after your app's router middleware. It will handle [GET and HEAD] requests for URLs which did not have a matching route by either adding or removing a trailing slash to the URL's path, then checking the app's router for a matching route for the new URL, in which case it will redirect the client (301 by default) to that URL.