
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@er3387aa/my-project2
Advanced tools
- (可选)esbuild 以捆绑用于浏览器(和 Node.js) - 使用 typescript-eslint 进行 linting(tslint 已弃用) - 使用 Jest (和 ts-jest )进行测试) - 将包发布到 npm - 持续集成(GitHub Actions / GitLab CI) - # 使用 TypeDoc 自动编写 API 文档
mkdir my-project
cd my-project
# Create source folder and files
mkdir src
touch src/main.ts src/main.test.ts src/cli.ts
# Create a package.json
npm init -y
# Install TypeScript, linter and Jest
npm install --save-dev typescript @types/node ts-node
npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin
npm install --save-dev jest ts-jest @types/jest
# Get a .gitignore
wget https://raw.githubusercontent.com/metachris/typescript-boilerplate/master/.gitignore
# Get a tsconfig.json with some defaults (adapt as needed)
wget https://raw.githubusercontent.com/metachris/typescript-boilerplate/master/tsconfig.json
# Get a .eslintrc.js
wget https://raw.githubusercontent.com/metachris/typescript-boilerplate/master/.eslintrc.js
# Get a jest.config.js
wget https://raw.githubusercontent.com/metachris/typescript-boilerplate/master/jest.config.js
# Create a git repo and make the first commit
git init
git add .
git commit -am "initial commit"
FAQs
- (可选)esbuild 以捆绑用于浏览器(和 Node.js) - 使用 typescript-eslint 进行 linting(tslint 已弃用) - 使用 Jest (和 ts-jest )进行测试) - 将包发布到 npm - 持续集成(GitHub Actions / GitLab CI) - # 使用 TypeDoc 自动编写 API 文档
We found that @er3387aa/my-project2 demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.