
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
lm-json-tree
Advanced tools
0.1.4json tree
lm-* 组件使用 npm 进行管理,命名空间统一为 lm-,请使用以下命令进行组件安装。
npm i lm-json-tree --save
npm,可通过以下方式进行 安装。npm install -g cnpm --registry=https://registry.npm.taobao.org
最少配置参数为:
content增加内容const data = {
array: [1, 2, 3],
bool: true,
object: {
foo: 'bar'
}
};
<JSONTree data={data} />
| Prop | Type | Default | Description |
|---|---|---|---|
data | Object | undefined | json数据源 |
hideRoot | Bool | false | 是否隐藏根节点 |
theme | String、Object | undefined | 主题色调 |
invertTheme | Bool | false | 主题色调反转 |
invertTheme | Bool | false | 主题色调反转 |
nodeClickHandle | Func | console.log(nodeType, keyPath, value) | 节点点击事件 |
isAnyUpdate | Bool | false | 是否强制每次数据变动都更新(有选中背景颜色时候使用) |
getItemString | Func | {itemType} {itemString} | key值后面的描述 |
labelRenderer | Func | {label}: | label的再加工 |
valueRenderer | Func | value => value | value的再加工 |
进入项目目录后,使用 node 命令启动服务
npm run start
打包发布可通过 node 命令执行
npm run build
npm publish
FAQs
* 作者:David Feng * 邮箱:sublime3@163.com * 版本:**`0.1.4`**
We found that lm-json-tree 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.