File: README.md

package info (click to toggle)
node-package-preamble 0.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 96 kB
  • sloc: makefile: 3
file content (27 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Package Preamble

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

```json
{
  "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:

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