typed-chrome-webstore-api
Advanced tools
Comparing version 0.1.2 to 0.2.2
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19213
13
365
70