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

rsa-unpack

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsa-unpack - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

5

bin/cmd.js
#!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var argv = require('optimist').argv;

@@ -17,3 +16,3 @@ var unpack = require('../');

var file = process.argv[2] || '-';
var file = argv._[0] || '-';
if (file === '-' && format === 'json') {

@@ -40,3 +39,3 @@ var data = '';

else if (/\.json$/.test(file) || format === 'json') {
var keys = require(path.resolve(process.argv[2]));
var keys = JSON.parse(fs.readFileSync(file, 'utf8'));
console.log(JSON.stringify({

@@ -43,0 +42,0 @@ private : encode(unpack(keys.private)),

{
"name" : "rsa-unpack",
"version" : "0.0.5",
"version" : "0.0.6",
"description" : "unpack rsa fields from PEM strings",

@@ -13,2 +13,5 @@ "main" : "index.js",

},
"dependencies" : {
"optimist" : "~0.3.5"
},
"devDependencies" : {

@@ -15,0 +18,0 @@ "tap" : "~0.3.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