has-trailing-slash
v1.0.3
Published
Check if a string has trailing slashses easily
Downloads
1
Maintainers
Readme
has-trailing-slash
Checks if a string has a trailing slash
Installation
with npm:
$ npm install has-trailing-slash
API
hasTrailingSlash(str)
Checks if str
ends with /
Example
const hasTrailingSlashes = require('has-trailing-slash');
expect(hasTrailingSlashes('http://google.com/')).to.be.true;
License
MIT