Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crx

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crx - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.idea/.name

2

bin/crx.js

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

fs.writeFile(keyPath, key.getPrivatePEM(), function(err){
fs.writeFile(keyPath, key.exportKey('pkcs1-private-pem'), function(err){
if (err){

@@ -56,0 +56,0 @@ throw err;

@@ -5,3 +5,3 @@ {

"description": "Build Google Chrome extensions with node.js",
"version": "1.0.0",
"version": "1.1.0",
"homepage": "https://github.com/oncletom/crx",

@@ -27,3 +27,3 @@ "bin": {

"es6-promise": "^2.0.0",
"node-rsa": "^0.1.54",
"node-rsa": "^0.2.10",
"rimraf": "^2.2.8",

@@ -30,0 +30,0 @@ "wrench": "^1.5.0"

# crx [![Build Status](https://secure.travis-ci.org/oncletom/crx.svg)](http://travis-ci.org/oncletom/crx)
crx is a [node.js](http://nodejs.org/) command line app for packing Google Chrome extensions. If you'd like to integrate it into your [grunt](http://gruntjs.com/) workflow, give [grunt-crx](https://github.com/oncletom/grunt-crx) a spin.
crx is a [pure node.js](http://nodejs.org/) command line app for packing Google Chrome extensions. **No OpenSSL required**!
## Requirements
If you'd like to integrate it into your [grunt](http://gruntjs.com/) workflow, give [grunt-crx](https://github.com/oncletom/grunt-crx) a spin.
* [node.js](http://nodejs.org/), tested with >= 0.7.12
* openssl
Massive hat tip to the [node-rsa project](https://github.com/rzcoder/node-rsa)!

@@ -56,3 +55,2 @@ ## Install

});
```

@@ -95,3 +93,3 @@

})
})
});
```

@@ -98,0 +96,0 @@

@@ -7,3 +7,3 @@ 'use strict';

var crypto = require("crypto");
var spawn = require("child_process").spawn;
var RSA = require('node-rsa');
var wrench = require("wrench");

@@ -162,11 +162,5 @@ var archiver = require("archiver");

return new Promise(function(resolve, reject){
var rsa = spawn("openssl", ["rsa", "-pubout", "-outform", "DER"]);
var key = new RSA(privateKey, 'pkcs1-private-pem');
rsa.stdout.on("data", function (publicKey) {
resolve(publicKey);
});
rsa.on('error', reject);
rsa.stdin.end(privateKey);
resolve(key.exportKey('pkcs8-public-der'));
});

@@ -173,0 +167,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