New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dir2tree

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dir2tree - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

_test_fs.js

18

package.json
{
"name": "dir2tree",
"version": "0.1.1",
"main": "index.js",
"version": "0.1.2",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
"start": "node test.js"
},

@@ -12,5 +12,13 @@ "author": {

"url": "https://github.com/zakarialaoui10"
},
},
"description": "a user-friendly Node.js tool for creating organized directory trees from a root directory. It offers customization options for tailored tree generation and content analysis",
"keywords": ["directory", "tree", "structure", "filesystem", "file management", "directory tree","json"],
"keywords": [
"directory",
"tree",
"structure",
"filesystem",
"file management",
"directory tree",
"json"
],
"repository": {

@@ -17,0 +25,0 @@ "type": "git",

@@ -1,21 +0,23 @@

# Install
## Demo
[Want to try !](https://replit.com/@zakariaelalaoui/dir2tree#generated.json)
## Install ![npm](https://img.shields.io/npm/v/dir2tree)
```bash
npm install dir2tree
```
# Import
## Common Js
## Import
### Common Js
```js
const dir2tree=require("dir2tree")
```
## Es Module
### Es Module
```js
import dir2tree from dir2tree
```
# Syntaxe
## Initialise
## Syntaxe
### Initialise
```js
const MyTree=dire2tree(ROOT,OPTIONS,CALLBACKS)
MyTree.write("generated_file.json")
MyTree.write(Target,"generated_file.json")
```
## Arguments
####$ Arguments
- **`ROOT`** : The path to the root directory that we want handle. it's ***`required`***

@@ -38,7 +40,7 @@ - **`OPTIONS`** : An object containing various configuration options to control the behavior of the tree generation.it's ***`optional`*** , These options might include :

- **`CALLBACKS`** : it's ***`optional`***
## Methodes
### Methodes
- **`.write(Target, filename)`**
# License
## License
This projet is licensed under the terms of MIT License .<br>
<img src="https://img.shields.io/github/license/zakarialaoui10/zikojs?color=rgb%2820%2C21%2C169%29">

@@ -0,0 +0,0 @@ const path=require("path");

@@ -0,0 +0,0 @@ const fs=require("fs");

@@ -0,0 +0,0 @@ const path = require("path");

@@ -0,0 +0,0 @@ const path=require("path");

@@ -0,0 +0,0 @@ const fs=require("fs");

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc