An open API service indexing awesome lists of open source software.

https://github.com/nichoth/readme-example

Pipe a code example into a readme template
https://github.com/nichoth/readme-example

Last synced: 11 months ago
JSON representation

Pipe a code example into a readme template

Awesome Lists containing this project

README

          

# readme example

Pipe a code example into a readme template

## install

$ npm install -g readme-example

## example

Templates are underscore style.

_readmeTmpl.md:

# my module

## example

```js
<%= example %>
```

On the command line:

$ cat example/code.js | readme-example _readmeTmpl.md > readme.md

Results in `readme.md`:

# my module

## example

```js
console.log('example');

```