惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 叶小钗
S
SegmentFault 最新的问题
雷峰网
雷峰网
H
Help Net Security
宝玉的分享
宝玉的分享
A
About on SuperTechFans
IT之家
IT之家
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog

博客园 - 荣锋亮

just-git 纯js 的git 实现 阿里开源的UnifiedModel agno agentos interfaces 简单说明 agno agentos ag-ui 协议 agno agentos 暴露a2a 协议 agno gateway模式 agno 多agent 框架集成能力 agno agentos 简单说明 agno workflow 模式简单说明 agno team agent 简单说明 agno remote agent 简单说明 agno agent 使用 agno agent 平台 sshpiper 简单试用 sshpiper ssh 的反向代理服务 context-propagation spring reactor 的上下文传递包 nginx 发布1.31.2 了 reductstore 的一些部署模式 reductstore 数据写入模式 reductstore bridge 方便reductstore数据bridge 扩展 reductstore zenoh 集成 zenoh 1.9.x 一些新特性 ladybugdb嵌入式图数据库 BlockHound 检测 reactor阻塞调用的agent reductstore 高性能面向机器人以及IOT场景的存储以及流数据基石 zerofs 一些新功能 java nats request-many 支持的一些模式 java nats RequestMany context7 面向llm 以及ai代码编辑器的依赖包更新平台 NATS Agents Protocol nats 团队提出的agent 通信协议
use-m 简单试用
荣锋亮 · 2026-04-14 · via 博客园 - 荣锋亮

按照github 介绍,进行动态脚本执行的示例

使用

  • app.mjs

通过use-m 动态加载lodash 以及execa,execa 执行shell,lodash 对于结果进行解析过滤处理

const { use } =  await import('use-m');

const _ = await use('lodash');
const { $: $$ } = await use('execa');
const $ = $$({ verbose: 'full' }); 

const { stdout } = await $`ls`.pipe`grep js`;
const files = _.filter(
  _.split(stdout, '\n'),
  (item) => !_.isEmpty(item)
);
console.log(files);
  • 执行效果

image

说明

官方示例中对于use-m 也通过了动态加载的模式,对于运行脚本是很方便的,但是会有安全的问题 ,当然内部实际也是使用了一个npm,bun 等工具,对于npm有安全的可以配置自己的私服,但是不像live-plugin-manager 可以自己灵活的控制安全方式

参考资料

https://github.com/link-foundation/use-m/tree/main