Socket
Book a DemoInstallSign in
Socket

bbs-reader-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbs-reader-cli

Convert ANSI file into HTML

0.1.3
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

bbs-reader-cli

A CLI tool to convert ANSI files into HTML.

Installation

npm install -g bbs-reader-cli

Usage

bbs2html

Usage:
  bbs2html [options] <files>...

Options:
  -o --out DIR    Output directory. [default: .]
  -s --src DIR    Source directory. [default: .]
  --inline-css    Make stylesheet inline in HTML file.

  --css-path FILE Stylesheet's save path, relative to HTML file or outdir.
                  [default: style.css]

  --absolute      Without this option, each HTML inside same directory will use
                  the same css file. Otherwise, only one css file relative to
				  outdir is generated.

  --dry-run       Print the file name instead of writing.
  -h --help       Show this.
  --version       Show version.

Example

With following file tree,

.
|-- a.ans
|-- b.ans
`-- c
   `-- c.ans

Convert .ans to .html:

bbs2html **/*.ans

Result:

.
|-- a.ans
|-- a.html
|-- b.ans
|-- b.html
|-- c
|  |-- c.ans
|  |-- c.html
|  `-- style.css
`-- style.css

Put result in different directory:

bbs2html -o result **/*.ans

Result:

.
|-- a.ans
|-- b.ans
|-- c
|  `-- c.ans
`-- result
   |-- a.html
   |-- b.html
   |-- c
   |  |-- c.html
   |  `-- style.css
   `-- style.css

Absolute mode:

bbs2html -o result/html --css-path ../css/style.css --absolute **/*.ans

Result:

|-- a.ans
|-- b.ans
|-- c
|  `-- c.ans
`-- result
   |-- css
   |  `-- style.css
   `-- html
      |-- a.html
      |-- b.html
      `-- c
         `-- c.html

Changelog

  • 0.1.3 (Sep 19, 2017)

    • Fix crlf issue.
  • 0.1.2 (Jan 19, 2017)

    • Fix infinite loop bug.
    • Improve the logger.
  • 0.1.1 (Jan 19, 2017)

    • Rename ansi2html -> bbs-reader-cli.
  • 0.1.0 (Jan 19, 2017)

    • First release.

FAQs

Package last updated on 19 Sep 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.