A tool for increasing NPM package download counters.
git clone https://npm-download-spammer.git
cd npm-download-spammer
go build -o npm-download-spammer
Run the program without arguments:
./npm-download-spammer
You will be prompted to enter:
- Package name
- Number of downloads
- Maximum number of concurrent downloads
- Download timeout (in milliseconds)
NPM_PACKAGE_NAME="your-package" \
NPM_NUM_DOWNLOADS=1000 \
NPM_MAX_CONCURRENT_DOWNLOAD=300 \
NPM_DOWNLOAD_TIMEOUT=3000 \
./npm-download-spammer
Create a npm-downloads-increaser.json
file in the launch directory:
{
"packageName": "your-package",
"numDownloads": 1000,
"maxConcurrentDownloads": 300,
"downloadTimeout": 3000
}
Then run the program:
./npm-download-spammer
Parameter | Description | Default |
---|---|---|
packageName | NPM package name | (required) |
numDownloads | Number of downloads to add | 1000 |
maxConcurrentDownloads | Number of concurrent downloads | 300 |
downloadTimeout | Download timeout in milliseconds | 3000 |
- For slow connections, it's recommended to reduce
maxConcurrentDownloads
and increasedownloadTimeout
- The program works with scoped packages, for example
@scope/package-name
To run all tests and generate coverage report:
# Run the test script
./scripts/run_tests.sh
The coverage report will be generated in HTML format and saved to coverage/coverage.html
.
You can also run specific tests:
# Run tests for a specific package
go test ./pkg/utils
# Run tests with verbose output
go test -v ./...
# Run a specific test
go test -run TestLoadConfig ./pkg/config
For Docker deployment instructions, see deploy/README.md.
MIT