1.0.2 • Published 6 years ago

node-web-ext v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

node-web-ext

Deprecated

web-extのreadme.mdでUsing web-ext is NodeJS codeが公開されたため、今後はそっちを使おう。

なにこれ

mozilla/web-extをNode.js APIから扱う。

使い方

$ npm i node-web-ext
const NodeWebExt = require('node-web-ext');

// syntax
const promise = NodeWebExt('command', {
	arg: true,
	fooBar: 'value'
});

// example: $ web-ext sign
const promise = NodeWebExt('sign', {
	sourceDir: './src',
	artifactsDir: './dist',
	id: '{xxxxx-xxxxx-xxxxx-xxxxx-xxxxx}',
	apiKey: 'user:00000:00000',
	apiSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
}).then( (text)=>{
	console.log(text);
}).catch( (error)=>{
	console.error('failed')
});

関連