Norvell's Public Machinations

    redirect-trailing-slash

    1.0.1 • Public • Published

    redirect-trailing-slash

    Express middleware to redirect URLs with a trailing slash to the same URL without the slash

    build status

    Installation

    npm install redirect-trailing-slash --save
    

    Usage

      var express = require('express')
      var app = express()
      var redirectTrailingSlash = require('redirect-trailing-slash')
    
      app.use(redirectTrailingSlash)
    
      app.listen(3000)
    

    Credits

    Adam Duncan

    Keywords

    none

    Install

    npm i redirect-trailing-slash

    DownloadsWeekly Downloads

    40

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • microadam