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

typed-chrome-webstore-api

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-chrome-webstore-api - npm Package Compare versions

Comparing version 0.1.2 to 0.2.2

dist/downloadCrx.d.ts

2

dist/authApi.js

@@ -10,3 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const got = require("got");
const got = __importStar(require("got"));
const consts = __importStar(require("./consts"));

@@ -13,0 +13,0 @@ async function fetchToken(clientId, clientSecret, refreshToken) {

export { fetchToken } from './authApi';
export { PublishTarget, IWebstoreResource, IPublishResponse, PublishStatus, UploadState } from './consts';
export { WebstoreApi } from './webstoreApi';
export * from './downloadCrx';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });

@@ -11,1 +14,2 @@ var authApi_1 = require("./authApi");

exports.WebstoreApi = webstoreApi_1.WebstoreApi;
__export(require("./downloadCrx"));

@@ -10,3 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const got = require("got");
const got = __importStar(require("got"));
const consts = __importStar(require("./consts"));

@@ -13,0 +13,0 @@ // noinspection JSUnusedGlobalSymbols

{
"name": "typed-chrome-webstore-api",
"version": "0.1.2",
"version": "0.2.2",
"description": "Typed Chrome Webstore API to upload/publish extensions",

@@ -15,10 +15,11 @@ "main": "dist/index.js",

"keywords": [
"raii",
"scope",
"decorator",
"IDisposable",
"destroy",
"dispose",
"stack",
"ts"
"chrome",
"webstore",
"api",
"extension",
"webextension",
"upload",
"publish",
"download",
"crx"
],

@@ -25,0 +26,0 @@ "author": "cardinalby",

[![Build Status](https://travis-ci.com/cardinalby/typed-chrome-webstore-api.svg?branch=master)](https://travis-ci.com/cardinalby/typed-chrome-webstore-api)
### Introduction
Typed Chrome Webstore API to upload/publish extensions
Typed Chrome Webstore API to upload/publish extensions and downloading crx file
### Installation

@@ -56,3 +56,16 @@ `npm install typed-chrome-webstore-api`

Our version have been accepted, and after some time out extension increases it's version to '1.30.0'!
##### Download extension crx
This feature is experimental because of API is not documented
```js
// A bit ugly, looks better if you use TypeScript :)
const downloadCrx = require('typed-chrome-webstore-api').DownloadCrx.downloadCrx;
const fs = require('fs');
const fstream = fs.createWriteStream('file.crx');
const readStream = await downloadCrx('extensionId');
readStream.pipe(fstream);
```
`downloadCrx()` also accepts additional options, look at `downloadCrx.d.ts` file for details
### Licence
MIT License
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