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.1.1 to 0.1.2

.travis.yml

15

element-finder.js
#!/usr/bin/env node
/*globals require, __dirname, process, console */
(function () {

@@ -32,3 +34,2 @@

},
directory = process.cwd(),
output,

@@ -40,7 +41,8 @@ walk,

program
.version('0.1.1')
.version('0.1.2')
.option('-s, --selector <string>', 'search for this Sizzle selector', stripQuotes)
.option('-x, --extension <csv list>', 'only search files with this extension (default html)', list, ['html'])
.option('-x, --extension <csv list>', 'only search files with this extension (default html, htm, shtml)', list, ['html', 'htm', 'shtml'])
.option('-i, --ignore <csv list>', 'ignore files matching this pattern (default .git, .svn)', list, ['.git', '.svn'])
.option('-j, --json', 'output each line as JSON (useful for reading the output in another app)')
.option('-d, --directory <string>', 'the directory to search (defaults to current working directory)', stripQuotes, process.cwd())
.parse(process.argv);

@@ -223,3 +225,3 @@

walk(directory, function (err, files) {
walk(program.directory, function (err, files) {
var i;

@@ -233,7 +235,7 @@ if (err) {

'selector' : program.selector,
'directory' : directory,
'directory' : program.directory,
'extension' : program.extension.join(', '),
'ignore' : program.ignore.join(', '),
'numberOfFiles' : numberOfFiles,
'message' : 'Searching for "' + program.selector + '" in ' + pluralise(numberOfFiles, 'file', 'files') + ' in "' + directory + '".'
'message' : 'Searching for "' + program.selector + '" in ' + pluralise(numberOfFiles, 'file', 'files') + ' in "' + program.directory + '".'
});

@@ -255,2 +257,1 @@ if (!program.json) {

}());
{
"name" : "elfinder",
"version" : "0.1.1",
"version" : "0.1.2",
"description" : "Command line app for searching in HTML files for elements that match a CSS selector",
"keywords" : "search, find, Sizzle, CSS, HTML",
"keywords": ["html", "css", "find in files", "cli", "sizzle", "search", "find"],
"homepage" : "https://github.com/keeganstreet/element-finder",

@@ -25,2 +25,5 @@ "author" : {

},
"scripts": {
"test": "vows test/test.js"
},
"dependencies" : {

@@ -31,3 +34,6 @@ "jsdom" : "0.2.x",

},
"keywords": ["html", "css", "find in files", "cli"]
"devDependencies": {
"cli-easy": "0.1.x",
"vows": "0.6.x"
}
}
# Element Finder
[![Build Status](https://travis-ci.org/keeganstreet/element-finder.png)](https://travis-ci.org/keeganstreet/element-finder)
Find in Files with CSS selectors.

@@ -4,0 +6,0 @@

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