Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@chehsunliu/seeder-minio
Advanced tools
The MinIO implementation for Seeder.js.
Install Seeder.js:
npm install -D @chehsunliu/seeder @chehsunliu/seeder-minio
Activate a local MinIO server via Docker Compose:
services:
minio:
image: minio/minio
restart: always
ports:
- "127.0.0.1:9000:9000"
- "127.0.0.1:9001:9001"
entrypoint: sh
command: -c 'mkdir -p /data/demo && /usr/bin/minio server /data --console-address :9001'
Configure the seeders in setup.ts
, which should be loaded in Jest setupFilesAfterEnv
or in Vitest setupFiles
:
import { seederManager } from "@chehsunliu/seeder";
import { MinioSeeder } from "@chehsunliu/seeder-minio";
seederManager.configure([
new MinioSeeder({
connection: {
region: "us-west-2",
endpoint: "http://127.0.0.1:9000",
username: "minioadmin",
password: "minioadmin",
},
localSrcDir: "minio",
destBucket: "demo",
}),
]);
afterAll(async () => {
await seederManager.release();
});
Put some test data in data
:
mkdir -p data/ftp
echo "123" > data/minio/a.txt
echo "abc" > data/minio/b/c.txt
import { seederManager } from "@chehsunliu/seeder";
beforeEach(async () => {
await seederManager.truncate();
await seederManager.seed(path.join(__dirname, "data"));
});
test("blah blah blah", () => {
// Data should be available in:
// - s3://demo/a.txt
// - s3://demo/b/c.txt
});
FAQs
The MinIO implementation for Seeder.js
The npm package @chehsunliu/seeder-minio receives a total of 102 weekly downloads. As such, @chehsunliu/seeder-minio popularity was classified as not popular.
We found that @chehsunliu/seeder-minio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.