dir-text
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

dir-text

Express the file directory structure in text like this

example
├── app
│   ├── controller
│   │   └── home.js
│   └── router.js
├── config
│   └── config.default.js
└── package.json

use

  const { dirText } = require('dir-text');

  // use default options
  dirText();

  // use custom ignores directories
  dirText(undefined, undefined, ['node_modules', '.git']);

  // use custom base path
  dirText('./');

  // use custom output file path
  dirText(undefined, 'output.md');

TypeScript

You can use TypeScript from version 0.0.3

checkList

  • [x] readme
  • [x] TypeScript
  • [ ] test
  • [ ] doc

Package Sidebar

Install

npm i dir-text

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

11.7 kB

Total Files

8

Last publish

Collaborators

  • wflixu