JSPM

remove-trailing-slash

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1451575
  • Score
    100M100P100Q213598F
  • License MIT

removes trailing slashes

Package Exports

  • remove-trailing-slash

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remove-trailing-slash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

remove-trailing-slash

removes trailing slashes

Installation

with component(1):

$ component install stephenmathieson/remove-trailing-slash

with npm:

$ npm install remove-trailing-slash

API

removeTrailingSlash(str)

Removes trailing slashes from the given str

Example

var slashes = require('remove-trailing-slash')

slashes('http://google.com/').should.be.equal('http://google.com');

License

MIT