
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
foreign-country-node
Advanced tools
``` /** * port 要关闭的端口 * callback 关闭端口后的回调 */ closePort(port: string, callback: Function); ```
/**
* port 要关闭的端口
* callback 关闭端口后的回调
*/
closePort(port: string, callback: Function);
// 使用方式:
handleSafety(app: Express)
// 使用方式:
saveBase64({savePath: string , base64: string, hasHeader?: boolean});
参数: savePath: 保存的地址(要包含文件名)
fileBase64: 保存的文件base
hasHeader: fileBase64是否包含头部,默认包含,我将会自动去除头部保存
返回值: Promose<{
code: 0, // 数字0标识成功,其他值表示失败
data: null,
msg: string
}>
// 使用方式:
fileToBase64(filePath: string);
参数: 读取的文件路径
返回值: Promose<{
code: 0, // 数字0标识成功,其他值表示失败
data: base64数据,
msg: string
}>
FAQs
``` /** * port 要关闭的端口 * callback 关闭端口后的回调 */ closePort(port: string, callback: Function); ```
The npm package foreign-country-node receives a total of 6 weekly downloads. As such, foreign-country-node popularity was classified as not popular.
We found that foreign-country-node 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.