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

parse-columns-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-columns-cli - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

24

cli.js
#!/usr/bin/env node
'use strict';
const getStdin = require('get-stdin');
const meow = require('meow');
const parseColumns = require('parse-columns');
import process from 'node:process';
import getStdin from 'get-stdin';
import meow from 'meow';
import parseColumns from 'parse-columns';

@@ -18,3 +18,5 @@ const cli = meow(`

localhost:9050 (LISTEN)
`);
`, {
importMeta: import.meta,
});

@@ -32,6 +34,8 @@ const input = cli.input[0];

if (input) {
init(input);
} else {
getStdin().then(init);
}
(async () => {
if (input) {
init(input);
} else {
init(await getStdin());
}
})();
{
"name": "parse-columns-cli",
"version": "2.0.0",
"description": "Parse text columns, like the output of unix commands. Returns JSON that you can manipulate with tools like jq or underscore-cli.",
"license": "MIT",
"repository": "sindresorhus/parse-columns-cli",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bin": {
"parse-columns": "cli.js"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"json",
"jq",
"underscore",
"parse",
"parser",
"columns",
"column",
"col",
"row",
"text",
"string",
"str",
"unix",
"command",
"cmd",
"output",
"csv",
"shell",
"sh",
"term",
"table"
],
"dependencies": {
"get-stdin": "^5.0.1",
"meow": "^3.5.0",
"parse-columns": "^1.1.0"
},
"devDependencies": {
"ava": "*",
"pify": "^2.3.0",
"xo": "*"
},
"xo": {
"ignores": [
"test.js"
]
}
"name": "parse-columns-cli",
"version": "3.0.0",
"description": "Parse text columns, like the output of unix commands. Returns JSON that you can manipulate with tools like jq or underscore-cli.",
"license": "MIT",
"repository": "sindresorhus/parse-columns-cli",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"bin": {
"parse-columns": "./cli.js"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"json",
"jq",
"underscore",
"parse",
"parser",
"columns",
"column",
"col",
"row",
"text",
"string",
"str",
"unix",
"command",
"cmd",
"output",
"csv",
"shell",
"sh",
"term",
"table"
],
"dependencies": {
"get-stdin": "^9.0.0",
"meow": "^10.1.1",
"parse-columns": "^3.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"pify": "^5.0.0",
"xo": "^0.46.4"
}
}

@@ -1,13 +0,11 @@

# parse-columns-cli [![Build Status](https://travis-ci.org/sindresorhus/parse-columns-cli.svg?branch=master)](https://travis-ci.org/sindresorhus/parse-columns-cli)
# parse-columns-cli
> Parse text columns, like the output of unix commands. Returns JSON that you can manipulate with tools like [jq](https://github.com/stedolan/jq) or [underscore-cli](https://github.com/ddopson/underscore-cli).
## Install
```sh
npm install --global parse-columns-cli
```
$ npm install --global parse-columns-cli
```
## Usage

@@ -30,10 +28,4 @@

## Related
- [parse-columns](https://github.com/sindresorhus/parse-columns) - API for this module
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)

Sorry, the diff of this file is not supported yet

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