Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

find-in-files

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-in-files - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

index.js

@@ -28,3 +28,3 @@ 'use strict';

fileFilter = new RegExp(fileFilter);
} else {
} else if (typeof fileFilter === 'undefined') {
fileFilter = new RegExp('.*');

@@ -31,0 +31,0 @@ }

{
"name": "find-in-files",
"version": "0.1.1",
"version": "0.1.2",
"description": "A simple tool to search text patterns across multiple files",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -58,2 +58,11 @@ 'use strict';

it('should accept a regex object for fileFilter', function (done) {
findInFiles.find(stringOne, '.', /.txt$/)
.then(function(result) {
result['test/fileOne.txt'].count.should.equal(1);
result.should.not.have.property('test/fileOne.md');
done();
});
});
it('should find strings in all files', function (done) {

@@ -60,0 +69,0 @@ findInFiles.find(stringOne, '.')

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc