generate a userscript header from data found in package.json
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
README.md
header.ejs
index.js
package.json

README.md

userscript-header-from-package.json

Installation

npm install -g userscript-header-from-package.json

Usage

Given a package.json file with this contents

{
  "name": "userscript-header-from-package.json",
  "version": "0.0.1",
  "license": "ISC",
  "description": "generate a userscript header from data found in package.json",
  "userscript": {
    "include": "http://*.lagomorph.*/*",
    "namespace": "http://www.lagomorph.de/"
  }
}

running userscript-header-from-package-json will produce the following output on stdout

// ==UserScript==
// @name        userscript-header-from-package.json
// @namespace   http://www.lagomorph.de/
// @description generate a userscript header from data found in package.json
// @license     ISC
// @include     http://*.lagomorph.*/*
// @version     0.0.1
// ==/UserScript==