remove-trailing-slash

removes trailing slashes

MIT 2 个版本
安装
npm install remove-trailing-slash
yarn add remove-trailing-slash
pnpm add remove-trailing-slash
bun add remove-trailing-slash
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

版本列表
0.1.1 2020-09-18
0.1.0 2013-08-02