has-trailing-slash

1.0.3 • Public • Published

has-trailing-slash Build Status npm version Dependency Status

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

Package Sidebar

Install

npm i has-trailing-slash

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • javirln