Socket
Socket
Sign inDemoInstall

path-ends-with

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

10

index.js

@@ -7,4 +7,4 @@ 'use strict';

var path = require('path');
var endsWith = require('ends-with');
var normalize = require('normalize-path');

@@ -15,8 +15,8 @@ /**

* @param {String} `filepath`
* @param {String} `str`
* @param {String} `string`
* @return {Boolean}
*/
module.exports = function(fp, string) {
return endsWith(path.normalize(fp), path.normalize(string));
};
module.exports = function(fp, str) {
return endsWith(normalize(fp, false), normalize(str, false));
};
{
"name": "path-ends-with",
"description": "Return `true` if a file path ends with the given string/suffix.",
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/jonschlinkert/path-ends-with",

@@ -12,3 +12,5 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"license": "MIT",
"files": ["index.js"],
"files": [
"index.js"
],
"main": "index.js",

@@ -23,3 +25,4 @@ "engines": {

"dependencies": {
"ends-with": "^0.2.0"
"ends-with": "^0.2.0",
"normalize-path": "^2.0.0"
},

@@ -67,2 +70,2 @@ "devDependencies": {

}
}
}

@@ -85,2 +85,2 @@ # path-ends-with [![NPM version](https://badge.fury.io/js/path-ends-with.svg)](http://badge.fury.io/js/path-ends-with) [![Build Status](https://travis-ci.org/jonschlinkert/path-ends-with.svg)](https://travis-ci.org/jonschlinkert/path-ends-with)

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 04, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 10, 2015._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc