Skip to content

honeo/node-web-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')
});

関連

About

web-ext wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published