removes trailing slashes
npm install remove-trailing-slash
yarn add remove-trailing-slash
pnpm add remove-trailing-slash
bun add remove-trailing-slash
with component(1):
$ component install stephenmathieson/remove-trailing-slash
with npm:
$ npm install remove-trailing-slash
removeTrailingSlash(str)
Removes trailing slashes from the given str
str
var slashes = require('remove-trailing-slash') slashes('http://google.com/').should.be.equal('http://google.com');
MIT