New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elfinder

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elfinder - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

Plan.rtf

19

element-finder.js

@@ -169,3 +169,3 @@ #!/usr/bin/env node

processFile = function (i, filePath) {
processFile = function (fileIndex, filePath) {
if (program.json) {

@@ -175,6 +175,7 @@ output({

'file' : filePath,
'fileNumber' : i + 1,
'fileNumber' : fileIndex + 1,
'numberOfFiles' : numberOfFiles
});
}
var data = fs.readFileSync(filePath, 'utf8'),

@@ -184,12 +185,13 @@ matches = domtosource.find(data, program.selector, true),

matchesDetails = [],
matchI,
i,
duration;
if (matchesLen > 0) {
numberOfFilesWithMatches += 1;
totalMatches += matchesLen;
for (matchI = 0; matchI < matchesLen; matchI += 1) {
for (i = 0; i < matchesLen; i += 1) {
matchesDetails.push({
'html' : trimLines(matches[matchI].html, 2),
'line' : matches[matchI].line,
'column' : matches[matchI].column
'html' : trimLines(matches[i].html, 2),
'line' : matches[i].line,
'column' : matches[i].column
});

@@ -205,3 +207,4 @@ }

}
if (i === numberOfFiles - 1) {
if (fileIndex === numberOfFiles - 1) {
duration = (Date.now() - startTime) / 1000;

@@ -208,0 +211,0 @@ output({

{
"name" : "elfinder",
"version" : "0.3.0",
"version" : "0.3.1",
"description" : "Command line app for searching in HTML files for elements that match a CSS selector",

@@ -23,3 +23,3 @@ "keywords": ["html", "css", "find in files", "cli", "search", "find"],

"engines": {
"node": "~0.8.x"
"node": ">= 0.8.x"
},

@@ -30,9 +30,9 @@ "scripts": {

"dependencies" : {
"domtosource" : "0.0.x",
"commander" : "0.6.x"
"domtosource" : "0.1.x",
"commander" : "2.1.x"
},
"devDependencies": {
"cli-easy": "0.1.x",
"vows": "0.6.x"
"vows": "0.7.x"
}
}

@@ -38,1 +38,6 @@ # Element Finder

Element Finder is a command line tool so it is best to install it globally with npm.
## Sublime Text Package
There is also a Sublime Text package. More info at https://github.com/keeganstreet/sublime-elfinder

@@ -63,5 +63,5 @@ var CLIeasy = require('cli-easy'),

.arg('-x "largepage" -s "p"')
.expect('should find 473 matches in 1 file', /Found 473 matches in 1 file./)
.expect('should find 333 matches in 1 file', /Found 333 matches in 1 file./)
.undiscuss()
.export(module);
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