/preamble

Generate a tiny preamble from a package.json.

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Package Preamble

Generates a minimalist preamble from a package.json. For example, given a package.json file:

{
  "name": "hello-world",
  "version": "0.0.1",
  "homepage": "https://example.com/hello-world",
  "author": {
    "name": "Alice Baker",
    "url": "https://example.com/alice"
  }
}

If you run preamble in the same directory as this package.json:

preamble

You’ll get the following output:

// https://example.com/hello-world Version 0.0.1. Copyright 2016 Alice Baker.