1.0.0 • Published 2 years ago

ptree-files v1.0.0

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

@ptree/files

Print your directory and files as a pretty tree

Use with npx

npx ptree-files [path]

# print out:

├─ README.md
├─ __tests__
│  └─ test.ts
├─ bin.js
├─ lib
│  ├─ index.cjs
│  └─ index.d.ts
├─ package.json
├─ rollup.config.ts
├─ src
│  └─ index.ts
└─ tsconfig.json

Install

npm install @ptree/files

Usage

const ptree = require('./lib/index.cjs');
const path = require('path');

ptree.printFiles(path.join(__dirname, '..'));
1.0.0

2 years ago