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-sftp
Advanced tools
The SFTP implementation for Seeder.js.
Install Seeder.js:
npm install -D @chehsunliu/seeder @chehsunliu/seeder-sftp
Use Docker Compose to serve an SFTP server:
services:
sftp:
image: atmoz/sftp:alpine
restart: always
ports:
- "127.0.0.1:2222:22"
command:
- "foo:bar:1000:1000:upload"
Configure the seeders in setup.ts
, which should be loaded in Jest setupFilesAfterEnv
or in Vitest setupFiles
:
import seederManager from "@chehsunliu/seeder";
import { SftpSeeder } from "@chehsunliu/seeder-sftp";
seederManager.configure([
new SftpSeeder({
connection: {
host: "127.0.0.1",
port: 2222,
username: "foo",
password: "bar",
},
localSrcDir: "sftp",
sftpDestDir: "/upload",
}),
]);
afterAll(async () => {
await seederManager.release();
});
Put some test data in data
:
mkdir -p data/sftp
echo "123" > data/sftp/a.txt
echo "abc" > data/sftp/b.txt
Invoke the seeders in tests:
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:
// - /upload/a.txt
// - /upload/b.txt
});
FAQs
The SFTP implementation for Seeder.js
The npm package @chehsunliu/seeder-sftp receives a total of 101 weekly downloads. As such, @chehsunliu/seeder-sftp popularity was classified as not popular.
We found that @chehsunliu/seeder-sftp 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.