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

nats-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nats-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

lib/index.js

@@ -16,4 +16,2 @@ #!/usr/bin/env node

var _package = require('../package.json');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -27,3 +25,3 @@

--port, -p Port, defaults to 4222
--version, -v Check what version of the cli you are running
--version Check what version of the cli you are running
--help Get help

@@ -52,3 +50,3 @@ `, {

if (cli.input.length > 1) {
const [_, ...msg] = cli.input;
const [_, ...msg] = cli.input; // eslint-disable-line
client.publish(cli.input[0], msg.join(' '));

@@ -55,0 +53,0 @@ client.subscribe(cli.input[0], () => {

{
"name": "nats-cli",
"description": "Simple CLI for NATS, can publish/subscribe to subjects",
"version": "0.1.0",
"version": "0.1.1",
"license": "MIT",

@@ -65,2 +65,3 @@ "scripts": {

"dependencies": {
"chalk": "^2.4.1",
"meow": "^5.0.0",

@@ -67,0 +68,0 @@ "nats": "^1.0.0"

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

import meow from 'meow'
import { version } from '../package.json'
const cli = meow(`

@@ -16,3 +14,3 @@ Usage

--port, -p Port, defaults to 4222
--version, -v Check what version of the cli you are running
--version Check what version of the cli you are running
--help Get help

@@ -36,3 +34,3 @@ `, {

function listen(msg, reply, subject) {
function listen (msg, reply, subject) {
console.log(`${chalk.grey(subject)} : ${msg}`)

@@ -42,3 +40,3 @@ }

if (cli.input.length > 1) {
const [_ , ...msg] = cli.input
const [_, ...msg] = cli.input // eslint-disable-line
client.publish(cli.input[0], msg.join(' '))

@@ -45,0 +43,0 @@ client.subscribe(cli.input[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