node-web-ext

1.0.2 • Public • Published

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

関連

Package Sidebar

Install

npm i node-web-ext

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • honeo