1.2.15 • Published 7 years ago

no-slash v1.2.15

Weekly downloads
37
License
MIT
Repository
github
Last release
7 years ago

npm version Build Status

no-slash

Express middleware for forcing no trailing url slash via redirect. Defaults to a 301, status code can be passed as an argument.

Usage

  • node 6+ recommended, for node < 6, an ES5 module is available at lib/es5.js.
  • $ yarn add no-slash or $ npm install no-slash --save
const express = require('express'),
    noSlash = require('no-slash'),
    app = express();

app.use(noSlash());

Or for node < 6

var express = require('express'),
    noSlash = require('no-slash/lib/es5'),
    app = express();

app.use(noSlash());

Contributing

Feel free to fork and submit a PR. Please reference an issue in your PR to simplify tracking them (create one if it doesn't exist, feature or bug).

  • node v8, npm v5
  • Tests are run with jest, 100% coverage is required
  • Linting with eslint
  • TravisCI for deploy to npm
1.2.15

7 years ago

1.2.14

7 years ago

1.2.13

7 years ago

1.2.12

7 years ago

1.2.11

7 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago