cli-file-viewer
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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')

Package Sidebar

Install

npm i cli-file-viewer

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

13.1 kB

Total Files

13

Last publish

Collaborators

  • icebreaker