Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

source2one

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

source2one

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

  • 1.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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
```

Keywords

FAQs

Package last updated on 31 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc