remove-trailing-slash
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1,003,991
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1,003,991
  • 0.1.0
    64,926

Package Sidebar

Install

npm i remove-trailing-slash

Weekly Downloads

1,068,917

Version

0.1.1

License

MIT

Unpacked Size

1.94 kB

Total Files

6

Last publish

Collaborators

  • stephenmathieson