1.1.5 • Published 6 years ago

source2one v1.1.5

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

soure2one

将源代码整合到一个 markdown 文件,方便打印和阅读。

Convert all source code to one markdown file, useful to print and read.

Usage

// generate files in folder "src" to src.source.md, ignore __test__
source2one src -i __test__

Install

npm install source2one -g

Options

-i: ignore files, seprated by ,

source2one src -i *.md,__test__

To html/pdf

pandoc: markdown to html

wkhtmltopdf: html to pdf

Example

test/core/core.js:

core content

test/plugin/plugin.js:

plugin content
plugin content2

After running source2one test, output test.source.md:

# test
generated at 2018-5-14 12:48:17

## TOC

⃞ test/core/core.js (lines: 1)

⃞ test/plugins/plugin.js (lines: 2)

## Content

test/core/core.js (lines: 1)
```
core content
```

test/plugins/plugin.js (lines: 2)
```
plugin content
plugin content2
```
1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago