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

narp

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

narp - npm Package Compare versions

Comparing version 1.1.9 to 2.0.0

1

bin/narp.js
#!/usr/bin/env node
require('../dist/cli.js');

36

dist/cli.js

@@ -7,2 +7,6 @@ 'use strict';

var _read = require('read');
var _read2 = _interopRequireDefault(_read);
var _index = require('./index');

@@ -18,10 +22,7 @@

var sharedOptions = function sharedOptions(yargsObj) {
return yargsObj.option('password', {
alias: 'p',
type: 'password'
}).option('verbose', {
return yargsObj.option('verbose', {
alias: 'v',
type: 'boolean',
description: 'More verbose output'
}).demand(['password']);
});
};

@@ -32,15 +33,26 @@

var options = {
transifex: {
password: args.password
},
verbose: args.verbose
var askForPassword = function askForPassword(fn) {
(0, _read2.default)({ prompt: 'Password: ', silent: true }, function (er, password) {
var options = {
transifex: {
password: password
},
verbose: args.verbose
};
fn(options);
});
};
if (args._[0] === 'pull') {
api.pull(options);
askForPassword(function (options) {
api.pull(options);
});
}
if (args._[0] === 'push') {
api.push(options);
askForPassword(function (options) {
api.push(options);
});
}

@@ -196,2 +196,2 @@ 'use strict';

exports.pull = pull;
exports.push = push;
exports.push = push;
{
"name": "narp",
"version": "1.1.9",
"version": "2.0.0",
"description": "The worlds best super translation manager package handler",

@@ -33,3 +33,3 @@ "main": "dist/index.js",

"dependencies": {
"pot-merge": "^2.0.2",
"pot-merge": "^2.0.3",
"colors": "^1.1.2",

@@ -36,0 +36,0 @@ "deep-extend": "^0.4.1",

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