Comparing version 0.1.1 to 0.1.2
{ | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
46
5
11207
13
200
1