
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.
npm install --save-dev langparse
在项目 package.json 的 script 中增加如下命令
"lang": "node ./node_modules/langparse/index.js"
npm run lang init
会在项目最外层生成如下文件
|-- langConfig
|-- baseConfig.js // 有关项目的基础设置
|-- defaultConfig.js // 编译文本的初始设置
|-- README.md // 使用说明
// init 之后可执行
npm run lang
npm run lang init [projectName]
会在 baseConfig.js 配置好的子项目位置中创建
|-- langConfig.js // 编译文本的项目设置
langparse 有两个使用层级,必须进行对应 init 之后才能使用
npm run lang。将以 langConfig 为执行目录,使用 defaultConfig.js 作为配置npm run lang [projectName]。将以 baseConfig.js 中配置定位到对应子目录,以子目录中的 langConfig.js 作为配置执行| 字段 | 默认值 | 功能 |
|---|---|---|
| projectDir | ./do.config.js | 指定一个文件,在此文件中,可以详细配置子项目的文件路径 |
| dirKey | langDir | 详情如下 |
| proKey | ["deploy"] | 假设根据 projectDir 读取到了配置文件 config,子项目详细目录位置为 config["deploy"][projectName][dirKey] |
| comDir | project | 如果没有获取上述值,子项目详细目录位置为 [langConfig 所在目录]/project/[projectName] |
假设有例句:this xxx still need to slash ฿xxx.xx more to get this product
| 字段 | 默认值 | 功能 |
|---|---|---|
| langNameKey | en_US | 与 lang 对应,英文的名称 |
| lang | ["zh_CN", "en_US", "th_TH"] | excal 中的语言顺序,同时也是输出的文件名 |
| langPre | 空 | 输出的文件名前缀 [langPre]zh_CN.js (输出会直接覆盖同名文件,请输出前自行确认) |
| langIns | true | 输出的文件是否需要增加 insert 函数 |
| entryFile | ./input.xlsx | 相对 ...Config.js 的输入文件位置 |
| outFileName | output | 相对 ...Config.js 的输出文件夹位置 |
| maxWordNum | 6 | key 值最大单词长度(不计入_) 3 => this_StillNeed... |
| insertReserved | true | 是否需要替换 xx 例1: "true" => this {0} still need to slash {1} more to get this product 例2: "false" => this xx still need to slash ฿xx.xx more to get this product |
| currencySymbol | 空 | 是否需要替换货币符,insertReserved = true 时此设置才生效例1: "¥$฿" => this {0} still need to slash {1} more to get this product 例2: "" => this {0} still need to slash ฿{1} more to get this product |
| keyStyle | space | 命名风格 3 => this_StillNeed...例1: "Camel" => this_StillNeedToSlash_More...例2: "Pascal" => This_StillNeedToSlash_More...例3: "space" => this _ still need to slash _ more... |
| preStr | 空 | 命名前缀 "[str]" => [str]this_StillNeedToSlash_More... |
注: langConfig.js 未配置的部分,会采用 defaultConfig.js 中的值。defaultConfig.js 必须配置每一项
FAQs
parse language
We found that langparse 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.