
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
hsu-scripts
Advanced tools
CLI toolbox for common scripts for npm libraries.
$ yarn install hsu-scripts eslint prettier --dev
// package.json
{
"babel": {
"presets": ["./node_modules/hsu-scripts/babel.js"]
},
"eslintConfig": {
"extends": ["./node_modules/hsu-scripts/eslint.js"]
}
}
// .prettierrc.js
const config = require('hsu-scripts/prettier.config');
module.exports = config;
// package.json
{
"scripts": {
"build": "hsu-scripts src",
"test": "NODE_ENV='test' jest --coverage",
"test:watch": "npm run test -- --watch",
"eslint": "eslint ./",
"format": "prettier --write '**/*.{js,json,md,css,yaml,yml}' '*.{js,json,md,css,yaml,yml}'"
}
}
$ npm run build
> hsu-scripts src
> rimraf es lib
> NODE_ENV='cjs' babel src --no-babelrc --config-file /hsu-scripts/.babelrc --out-dir lib --ignore __tests__,**/*.test.js,**/*.example.js
Successfully compiled 13 files with Babel.
> NODE_ENV='es' babel src --no-babelrc --config-file /hsu-scripts/.babelrc --out-dir es --ignore __tests__,**/*.test.js,**/*.example.js
Successfully compiled 13 files with Babel.
> flow-copy-source -i __tests__ -i **/*.test.js -i **/*.example.js src lib
> flow-copy-source -i __tests__ -i **/*.test.js -i **/*.example.js src es
> hsu-scripts -h
Usage: hsu-scripts <pattern> [options]
<pattern> Glob pattern to specify files.
Options:
--es-dir Output es module directory. [string] [default: "es"]
--cjs-dir Output commonjs module directory. [string] [default: "lib"]
-i, --ignore The list of glob paths to **not** compile
[array] [default: ["__tests__","**/*.test.js","**/*.example.js"]]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
hsu-scripts src Simple example
hsu-scripts src --es-dir esm Custom es module directory
hsu-scripts src --cjs-dir 'cjs' Custom commonjs module directory
hsu-scripts src -i '__specs__' '**/*.spec.js'
For more information go to https://github.com/evenchange4/hsu-scripts
$ yarn install --pure-lockfile
Use tools to build itself.
$ yarn run build
$ yarn run format
$ yarn run eslint
$ yarn run flow
$ npm version patch
$ git push
$ npm run changelog
FAQs
CLI toolbox for common scripts for npm libraries.
We found that hsu-scripts 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.