1.0.2 • Published 2 years ago

cli-file-viewer v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

cli-file-viewer

How to use?

Global Install

yarn global add cli-file-viewer
# then
# if you wanna preview current dir file content with utf-8 encoding , you can exec
cfv

cfv [path]

Use with js/ts code

// esm
import { preview } from 'cli-file-viewer'
// cjs
const { preview } = require('cli-file-viewer')

preview(targetPath:string)

Result

[File Content]

[page]:17/17 [filename]:yarn.lock (prev: '← ↑' next: '→ ↓' ESC: 'ctrl + c')