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

leasot

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leasot - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

bin/leasot-reporter.js

3

bin/leasot.js

@@ -64,2 +64,5 @@ #!/usr/bin/env node

console.log('');
console.log(' # Report from leasot parsing and filter todos using `jq`');
console.log(' $ leasot tests/**/*.styl --reporter json | jq \'map(select(.kind == "TODO"))\' | leasot-reporter');
console.log('');
})

@@ -66,0 +69,0 @@ .parse(process.argv);

9

lib/cli.js
var fs = require('fs');
var getStdin = require('get-stdin');
var globby = require('globby');

@@ -6,3 +7,2 @@ var logSymbols = require('log-symbols');

var path = require('path');
var stdin = require('get-stdin');

@@ -48,3 +48,3 @@ var leasot = require('../index');

} catch (e) {
console.log(logSymbols.error, e.toString());
console.error(e);
}

@@ -95,5 +95,8 @@ process.exit(todos.length ? 1 : 0);

if (!process.stdin.isTTY) {
return stdin(function (content) {
return getStdin().then(function (content) {
var todos = parseContentSync(content, program);
outputTodos(todos, program.reporter);
}).catch(function (e) {
console.error(e);
process.exit(1);
});

@@ -100,0 +103,0 @@ }

@@ -31,2 +31,5 @@ 'use strict';

}
if (!Array.isArray(comments)) {
throw new TypeError('Todos must be an array');
}

@@ -33,0 +36,0 @@ delete config.reporter;

{
"name": "leasot",
"description": "Parse and output TODOs and FIXMEs from comments in your files",
"version": "4.1.0",
"version": "4.2.0",
"author": "Gilad Peleg <giladp007@gmail.com> (http://giladpeleg.com)",
"bin": "./bin/leasot.js",
"bin": {
"leasot": "./bin/leasot.js",
"leasot-reporter": "./bin/leasot-reporter.js"
},
"dependencies": {

@@ -8,0 +11,0 @@ "async": "^2.1.2",

@@ -82,2 +82,3 @@ ![leasot](media/leasot.png)

$ leasot --help
Usage: leasot [options] <file ...>

@@ -124,2 +125,5 @@

$ cat index.coffee | leasot --filetype .coffee
# Report from leasot parsing and filter todos using `jq`
$ leasot tests/**/*.styl --reporter json | jq 'map(select(.kind == "TODO"))' | leasot-reporter
```

@@ -126,0 +130,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