
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@jyeontu/console-input
Advanced tools
config = [
{
name:'参数名',
tip:'输入时提示',
configTip:'确认信息提示 ',
defaultVal:'默认值'
}
]
参数名称,后面获取值的时候的作为可以返回,具体如下:
{
参数名1: 控制台输入值1,
参数名2: 控制台输入值2,
.
.
.
参数名n: 控制台输入值n,
}
控制台输入提示,如下图
确认信息时的提示,如下图
设置默认值,控制台输入为空时使用默认值替代,如下图
npm install @jyeontu/console-input
const ConsoleInput = require('@jyeontu/console-input');
const config = [
{
name:'videoPath',
tip:'请输入视频路径(如./video/1.mp4):',
configTip:'视频路径: ',
defaultVal:'./video/1.mp4'
},
{
name:'saveFilePath',
tip:'请输入截图保存路径(如./img/): ',
configTip:'截图保存路径:',
defaultVal:'./img/'
},
{
name:'cutNums',
tip:'请输入需要截取图片数量(如30),注意:数量应该小于视频时间秒数: ',
configTip:'截取图片数量:',
defaultVal:30
}
];
const test = new ConsoleInput(config);
let res = test.askInput();
res.then(res=>{
console.log(res);
});
const ConsoleInput = require('./consoleInput');
const config = [
{
name:'videoPath',
tip:'请输入视频路径(如./video/1.mp4):',
configTip:'视频路径: ',
defaultVal:'./video/1.mp4'
},
{
name:'saveFilePath',
tip:'请输入截图保存路径(如./img/): ',
configTip:'截图保存路径:',
defaultVal:'./img/'
},
{
name:'cutNums',
tip:'请输入需要截取图片数量(如30),注意:数量应该小于视频时间秒数: ',
configTip:'截取图片数量:',
defaultVal:30
}
];
const test = new ConsoleInput(config);
let res = test.askInput();
res.then(res=>{
console.log(res);
//{ videoPath: './video/1.mp4', saveFilePath: './img/', cutNums: 30 }
});
FAQs
node控制台输入配置
The npm package @jyeontu/console-input receives a total of 0 weekly downloads. As such, @jyeontu/console-input popularity was classified as not popular.
We found that @jyeontu/console-input 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.