Package Exports
- path-ends-with
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (path-ends-with) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
path-ends-with 
Does a file path end with the given string?
Install
Install with npm:
npm i path-ends-with --save
Usage
var endsWith = require('path-ends-with');
endsWith('foo\\bar\\baz\\', '/');
//=> true
endsWith('foo\\bar\\baz\\', '\\');
//=> true
endsWith('foo/bar/baz/', '/');
//=> true
endsWith('foo/bar/baz', 'baz');
//=> true
endsWith('foo/bar/baz', 'bar/baz');
//=> true
endsWith('foo\\bar\\baz.md', 'baz.md');
//=> true
endsWith('foo\\bar\\baz.md', '.md');
//=> true
endsWith('foo\\bar\\baz.md', 'bar/baz.md');
//=> true
endsWith('foo\\bar\\baz.md', '/');
//=> false
endsWith('foo\\bar\\baz.md', 'baz');
//=> false
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on June 25, 2014.