embellish-readme
Embelish your README with badges other autogenerated content
Last updated 2 months ago by damonoehlman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install embellish-readme 
SYNC missed versions from official npm registry.

embellish

Embellish is a simple utility to add various embellishments to your projects README (or other markdown files).

NPM

unstable Maintainability

General usage

Once installed (either globally or locally to your project):

embellish <targetfile>

e.g. embellish README.md

Features

Auto insertion of project badges

Let's face it, badges are the hotness. Adding them to your readme though is a pain. May as well let a tool do that for you instead. Embelish can add (and update) various relevant project badges to your README.md file. The insertion position is after the first paragraph after the first H1 defined in your markdown file (and right before the next heading).

Auto insertion of license information

When embellishing a README file, a search is done for a ## LICENSE header. After this header all existing content is remove and an applicable license description added for the project license as described in the project package.json file.

This also generates the appropriate LICENSE file in the current working directory.

NOTE: In the event that you wish to display a difference licence holder to the author information that is contained within package.json simply add the following to your package.json file:

{
  "name": "foo",
  ...,
  "embellish": {
    "licenseHolder": "Acme Corp"
  }
}

### Auto insertion of examples

_Upcoming feature._

When updating the target markdown file, `embellish` will check for the presence of an `examples` directory in the current working directory.  If found, it will then iterate through the child directories and include each of the examples in the target file.  It will include two things:

1. The content of any `README.md` found in the `examples/[example]/` directory.
2. The content of any `index.js` file found in the `examples/[example]/` directory as a GHFM code block.

This technique currently works well for browserify friendly demos, however, more work is to be done to achieve compatibility with other tooling.

## LICENSE

The MIT License (MIT)

Copyright (c) 2019 Damon Oehlman <damon.oehlman@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Current Tags

  • 1.6.0                                ...           latest (2 months ago)

13 Versions

  • 1.6.0                                ...           2 months ago
  • 1.5.2                                ...           a year ago
  • 1.5.1                                ...           a year ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 69
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |