1.3.0 • Published 5 years ago

wemf v1.3.0

Weekly downloads
30
License
MIT
Repository
github
Last release
5 years ago

WebExtension Manifest Formatter

Build Status

npm.io

npm.io

Formatter and validator for manifest.json on Chrome Extension / Firefox WebExtension / Extension for Edge.

Install

% npm install -g wemf

Usage

  Usage: wemf <packageJsonPath> [options]

  Options:

    -h, --help          output usage information
    -V, --version       output the version number
    --validate          Only validate manifest.json
    -O --output <path>  Output manifest.json path
    -U --update         Update manifest.json itself
    --browser <browser-name>  Set target browser (chrome|firefox|edge) default: firefox

Formatter

% wemf /path/to/chrome-ext/manifest.json -O /path/to/firefox-ext/manifest.json

Validate

% wemf /path/to/firefox-ext/manifest.json --validate

if it has no problem, return nothing

Tips

Set custom value via package.json

If you want to fill columns (ex: applications) automatically, you should write webextension column on project's package.json.

Example

{
  "name": "hoge",
  ...
  "webextension": {
    "name": 'extension-name',
    "applications": {
      "gecko": {
        "id": "sample-extension@example.org",
        "strict_min_version": "47.0a1"
      }
    }
  }
}

inherit value from package.json

When name, version, author, description or homepage_url is filled inherit, manifest.json's field will be filled by same key name value from package.json (homepage_url will be filled by homepage in package.json)

information

Please check newest information

Development

Welcome your Pull Request!!

Please fork it and send Pull Request to this repository.

Testing

% npm test

1.3.0

5 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.4.0

9 years ago

0.3.3

9 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago