New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@herberthe/filestree

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@herberthe/filestree

A library for generating files tree.

latest
npmnpm
Version
1.3.1
Version published
Maintainers
1
Created
Source

FilesTree

version download GitHub license GitHub stars GitHub forks GitHub issues

A library for generating files tree.

Install

npm i @herberthe/filestree

# Or
yarn add @herberthe/filestree

# Or

pnpm add @herberthe/filestree

Usage

import { FilesTree } from "filestree"

const tree = new FilesTree({
    entry: "<Your Entry Path Here>",
    ...otherOptions
}).output()

console.log(tree)

Options

OptionTypeRequiredDefaultDescription
entrystring string[]-The entry path
depthnumber×InfinityThe depth of tree
filterRegExp FilterFunctionType×-The filter for filename
path"relative" "absolute"×"absolute"The path type for output
flatboolean×falseFlat the tree
output"path" "stats"×"path"The output type
custom<T extends any = any>(filename: string, path: string, stats: Stats) => T×-The custom output result function, If the optional function custom existed, the output option would not work!

For more details, see Types Defination

LICENSE

MIT

Keywords

filestree

FAQs

Package last updated on 08 Jun 2022

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