
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.
auto-command
Advanced tools
An efficiency tool to reduce copy and paste operations
You have to configure the .autocmd.ts file
import { defineConfig } from 'auto-command/lib';
export default defineConfig({
translate: {
// path (required): absolute or relative path to the locales file
outDir: '/xxx/xxx/xxx/src/locales',
// Whether to keep the previous translation unchanged (optional), enabled by default
keep: true,
// type (optional): defaults to directory (antd-pro mode)
type: 'dir',
// Hook function (optional): custom output
hook: {
filter: () => {},
convertContent: { input: () => {}, out: () => {} },
handleData: () => {},
},
// Language conversion (optional): Convert from Chinese to English by default, the output file name is related to this configuration
language: {
from: 'zh-CN',
to: ['en-US'],
},
// Separator (optional): The default is -, if your file name is not separated by -, you need to configure
separator: '-',
// Configure your .prettier.js file path (absolute path or relative path). After translation, the output file will be formatted with your configuration to avoid useless changes
prettierPath: '/xxx/.prettierrc.js',
// Translator type (optional): default youdao
translatorType: 'youdao',
// google translator configuration (optional): empty by default
google: {
proxy: {
host: '127.0.0.1',
port: 7890,
},
},
// youdao translator configuration (optional): there is a value by default, if the translation fails, the balance may be insufficient, please configure
youdao: {
key: 'xxx',
secret: 'xxx',
},
},
});
$ npm i auto-command
$ npx ac
**** Please select the task to be performed **** (Use arrow keys)
git diff
❯ translate
or
$ npx ac -t=translate
$ npm i auto-command
$ npx ac
**** Please select the task to be performed **** (Use arrow keys)
❯ git diff
translate
or
$ npx ac -t=diff
In this way, you can compare two branches (by default, the current branch is compared with the master branch) and export the comparison result file
FAQs
Automatic command
We found that auto-command 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.