
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
parse-directorys
Advanced tools
把目录结构解析成一个目录树对象
npm install parse-directorys --save
...
var parser = require("parse-directorys");
parser(".....");
最终返回的结构类型
name 目录名
type 类型(file/folder)
fullPath 全路径
parent 父级目录路径
files 当前目录下所有文件
parent 父级目录路径
fullPath 全路径
name 文件名
size 文件大小(kb)
extName 文件结构
mimeType mime类型
folders 当前目录下所有目录(结构同上)
name 目录名
type 类型(file/folder)
fullPath 全路径
parent 父级目录路径
files 当前目录下所有文件
parent 父级目录路径
fullPath 全路径
name 文件名
size 文件大小(kb)
extName 文件结构
mimeType mime类型
folders 当前目录下所有目录(结构同上)
git clone https://github.com/rwson/parse-directorys.git
cd parse-directorys
// 修改server.js里面"/Users/Mrson/My/Projects/Uquiz/uquiz-ng4/src"到自己机器的任意路径
node server.js
访问http://localhost:3000查看结果
FAQs
parse directorys to an object
The npm package parse-directorys receives a total of 0 weekly downloads. As such, parse-directorys popularity was classified as not popular.
We found that parse-directorys demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.