{"_id":"@aitrs/simple-mock-ftp-server","_rev":"8-ff50e832f9971f2f8a657ae0346efe33","name":"@aitrs/simple-mock-ftp-server","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.0","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"@types/moment":"^2.13.0","moment":"^2.29.4","typed-emitter":"^2.1.0"},"gitHead":"ae118ca9249ea88ed207871b5d9a0cd228f80b3c","_id":"@aitrs/simple-mock-ftp-server@1.0.0","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-K1SeZJOVu7F8pBUylSLmsRH+dwyT+Iyg86iBv3/FeiKIYDAO3XCDaWfCowu6Kzpr0fnpPIkH9LSsfNXd9uPdaA==","shasum":"a0d8382fe5b428f484016a0540f538c3de3062d5","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.0.tgz","fileCount":67,"unpackedSize":807594,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjVHUMzT4ZZYQf+5ndYZMnhNbmuLZxh63A+eUf1oFYVAiApbpKsFUWIU2NZJ2ZuM5wdkyojhI7JClCY5VQgw+QrUA=="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.0_1690792272983_0.39345654682133047"},"_hasShrinkwrap":false},"1.0.1":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.1","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"@types/moment":"^2.13.0","moment":"^2.29.4","typed-emitter":"^2.1.0"},"gitHead":"f28a533d40d8c0e0c20c03e83a2377adfdfc4905","_id":"@aitrs/simple-mock-ftp-server@1.0.1","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-zOBdWw8U/uhdxvI59bgP9j4+CzH4QMuOSeGYPZbR1D1S6cAspj5ru6cBO2bC5OGmRQQlvGgyv5BegZxAr+G2vg==","shasum":"b140e2ad27f8d1049f2c7c4122a677d5c8c71cb4","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.1.tgz","fileCount":68,"unpackedSize":934889,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8P9g8bboTi5S7toH/xXcZFnBx2ob8K8dM7RKIluuYCAiAJNst+5g0Xntqee0/3UHqGlg4Mdftz6MPp7FaRwwOiDQ=="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.1_1690792587112_0.410256525119314"},"_hasShrinkwrap":false},"1.0.2":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.2","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"moment":"^2.29.4"},"gitHead":"f206fec6d0b6c22ec8929d99f3ca50f7c4dd8303","_id":"@aitrs/simple-mock-ftp-server@1.0.2","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-EjL/stmlbbTRJQuz5xjFWQ1oJpZCRT+gxDUcmiPx/vqhae7PZgmnWLZPKqc2DeyaDH+YW3NhKjtyx3RHC04+VA==","shasum":"3b8d3d82302f10597169c9266c45f19926b2624e","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.2.tgz","fileCount":67,"unpackedSize":807451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG4hZHKUuCUO37fLiN+hHvOEpVe7HSQH5RV44kEM3HVOAiAwZckIDi9TKjOXRceTQoJI8vZg8IaAINDlOK4+BTpe4Q=="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.2_1690793686200_0.24003773466773604"},"_hasShrinkwrap":false},"1.0.3":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.3","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"@types/moment":"^2.13.0","moment":"^2.29.4","typed-emitter":"^2.1.0"},"gitHead":"af5611d76ea029344f57203a92873f67c281dd11","_id":"@aitrs/simple-mock-ftp-server@1.0.3","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-AAFVI+EYi1QMIYW/+qQzSRF2c0/byIfpj6w8RZvdDGzdoOy78LMyD11p9pKmoFSRl7EQ/thUvnHPEv9CImNt7A==","shasum":"fcba4c2ac9ce9d78ed630581dcee7c0ea1b16074","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.3.tgz","fileCount":67,"unpackedSize":807514,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEQX8MwHoVK4R0UQv+7QKkWdZVln+1QSFbUrknEL9ReQIhAJnqQtjMLEC+kXKOW9XVbeQGIzEGBC6oG0v5IW4nNxPK"}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.3_1690803429166_0.4729416596433085"},"_hasShrinkwrap":false},"1.0.4":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.4","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"moment":"^2.29.4"},"gitHead":"df3a4e5d25c7c309420fedc69ddbbdd9ce05edcf","_id":"@aitrs/simple-mock-ftp-server@1.0.4","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-XpqPdPDjncALX91oJamXmk5JxLSNfO1KPma5Yat0R4OfTHfO5UrHreO8iYLzPxKoKG/HNnYVxD2WNWkqzL5KhQ==","shasum":"2f45dd9c1117894578a66c746a8952fd8ae35134","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.4.tgz","fileCount":67,"unpackedSize":807451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCV2/t0v+NRoafv+xsdH4w7EzYYyVs9zynlo6TDxBUtIAIgYo0FawN8tLheHacsUW1w0T749YRuf2HVDcnJv+USDws="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.4_1690803756837_0.4128745063302932"},"_hasShrinkwrap":false},"1.0.5":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.5","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"moment":"^2.29.4"},"gitHead":"06621cf208a5fce459244263ebd24d9b8e5d87e1","_id":"@aitrs/simple-mock-ftp-server@1.0.5","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-3M5xdVEaR75gRBNIJHM40H8N4Uj/Iy0c9p/J/dvr3D0Adv9zCFXcpIa+oO1qFOL+W4s3Y/vY1OxtseCLecrTDw==","shasum":"d799d0e1db8f9b393caeb77aac4225bf60e2bcd9","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.5.tgz","fileCount":67,"unpackedSize":804748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIA+Fxa9pF14vIZfHV0yf5+rkZDiua4BqsnTSAgCCpdAIhALe8+hFyVtACDHYKbX0cfivRyf/OgKPuxqyNMBVQFwhg"}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.5_1690805506430_0.20585658530723472"},"_hasShrinkwrap":false},"1.0.6":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.6","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"moment":"^2.29.4"},"gitHead":"e6c2e1bd3e18220fbaca80b6f7a0ea724513c2c7","_id":"@aitrs/simple-mock-ftp-server@1.0.6","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-fJ4vR0uRrkL+79aYFmBySJXbCnddLTfDV76W2krhMso084J37mEud6/OgUFkJwQsIt+oXpttX+r1KRZkyxG9kg==","shasum":"634fecc7187c0ec839f20b140f89d6df4f174242","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.6.tgz","fileCount":67,"unpackedSize":804964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH1AGOUP2NAGKocpudS7k9HrSfVdnGwm2LxINVvv+0Y2AiEA4aM0x2UkINA3fttTnF6gnsnBCWjZMjhv6hAFOGs4vVI="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.6_1690812598293_0.5798166760248813"},"_hasShrinkwrap":false},"1.0.7":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.7","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"moment":"^2.29.4"},"gitHead":"da47c4cc09afdc6ff01a2fc9e2c49f8df104d64a","_id":"@aitrs/simple-mock-ftp-server@1.0.7","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-sJXsbsEM3h8cHqQ7b+DRHJmQrsvVcxRwFQdDpfSSqz+U5qSIM6roKlycag08DyStmYFOVqQ/2Y6TpBXJv0dEvQ==","shasum":"bbec3bc1d062f038d38d8efeaae6c443f0465529","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.7.tgz","fileCount":67,"unpackedSize":804985,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGtn8qIuFpwLJZoGgHd2JmLVlrQnROMXt0di3/FtnRIeAiEAwz/ih4XixvjOZxz1gkzWa+DVOKHqceQZvyND0HtvLas="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.7_1690877122971_0.9386719921489071"},"_hasShrinkwrap":false},"1.0.8":{"name":"@aitrs/simple-mock-ftp-server","version":"1.0.8","description":"Simple mock ftp server to add in your unit tests","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","build":"npx tsc --project tsconfig.build.json","clean":"rm -rf ./dist"},"keywords":["FTP","mock","mocking","testing","test","CI/CD"],"author":{"name":"Dorian VUOLO"},"license":"MIT","devDependencies":{"@types/chai":"^4.3.5","@types/jest":"^29.5.3","@types/mocha":"^10.0.1","@types/node":"^20.4.2","chai":"^4.3.7","debugger-is-attached":"^1.2.0","jest":"^29.6.1","mocha":"^10.2.0","nyc":"^15.1.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","ts-node-dev":"^2.0.0","typescript":"^5.1.6"},"dependencies":{"moment":"^2.29.4"},"gitHead":"da47c4cc09afdc6ff01a2fc9e2c49f8df104d64a","_id":"@aitrs/simple-mock-ftp-server@1.0.8","_nodeVersion":"16.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-RBC2os8Z12JraKXnDu+XplZt1Ur1N2lFQgR6DJVEt3sU2gnmj7Jzmjo3w4XgtzDVOj9CF9XFEDS4dOXXzNQp9g==","shasum":"d593afddadede38b2765016847e447d662267217","tarball":"https://registry.npmjs.org/@aitrs/simple-mock-ftp-server/-/simple-mock-ftp-server-1.0.8.tgz","fileCount":45,"unpackedSize":285822,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDfIQI/ydE/n2lx0LUByIG08BVFXsOpnJC4FKdd3XvdUAiEA10KLwAYcEeRpxLtF9rvYNR7BePhUmRM3mvEHad63Dtk="}]},"_npmUser":{"name":"aitrs","email":"dorian.vuolo@gmail.com"},"directories":{},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-mock-ftp-server_1.0.8_1691289244917_0.6974949507011776"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-31T08:31:12.929Z","1.0.0":"2023-07-31T08:31:13.170Z","modified":"2023-08-06T02:34:05.268Z","1.0.1":"2023-07-31T08:36:27.365Z","1.0.2":"2023-07-31T08:54:46.383Z","1.0.3":"2023-07-31T11:37:09.309Z","1.0.4":"2023-07-31T11:42:36.990Z","1.0.5":"2023-07-31T12:11:46.636Z","1.0.6":"2023-07-31T14:09:58.454Z","1.0.7":"2023-08-01T08:05:23.155Z","1.0.8":"2023-08-06T02:34:05.157Z"},"maintainers":[{"name":"aitrs","email":"dorian.vuolo@gmail.com"}],"description":"Simple mock ftp server to add in your unit tests","author":{"name":"Dorian VUOLO"},"license":"MIT","readme":"# simple-mock-ftp-server\nA very basic mock FTP server for testing purposes.\n## Usage\nThis mock ftp relies on a mock FTP server (as for now, stripped down to the most simple version possible) bound to a mock filesystem.  \n### Create a mock filesystem\nIt is possible to create a mock filesystem via a free form object using the createMockFilesystem function.\n\n ```typescript\nimport { createMockFilesystem } from 'simple-mock-ftp-server';\n\nconst fs = createMockFilesystem({\n    folder1: {\n        fooFile: {\n            ___contents: Buffer.from('bar'),\n            ___mode: 755,\n        },\n        childFolder: {\n            barFile: {\n                ___contents: Buffer.from('baz'),\n            },\n        },\n    },\n    bazFile: {\n        ___mode: 755,\n        ___target: '/path/to/a/real/file',\n    },\n});\n ```\nFiles are the subobjects of the definition that got the '___contents' or '___target' attributes.  \nPlease notice the 3 underscores preceding their names, they are there to prevent collision with the most possible directory names one can want to provide.  \nAny other subobject is considered a folder.   \n#### ___contents\nMust be a Buffer representing the binary contents of the mocked file in the mocked filesystem.\n#### ___target\nSpecifies a path on the real filesystem to get contents of an existing file as part of what's in the mocked filesystem. \n#### ___mode\nSpecifies the mode of the current file or folder. If not specified, defaults to 777 (all access).\n\n### Create a mock FTP server\n```typescript\nimport { createMockFtpServer, createMockFilesystem } from 'simple-mock-ftp-server';\n\nconst { server, abortController } = createMockFtpServer({\n    host: '127.0.0.1',\n    port: '12345',\n    user: 'yourUserName',\n    password: 'yourPassword',\n    mockFilesystem: createMockFilesystem({\n        folder1: {\n            foo: {\n                ___contents: Buffer.from('bar'),\n            },\n        },\n        bar: {\n            ___target: './path/to/a/file',\n            ___mode: 755,\n        },\n    }),\n});\n```\nIf 'user' and 'password' are not specified, the ftp server will run in anonymous mode and no login will be necessary.\n### Warnings\nThis mock FTP server is not intended to be used in production. First of all, the mocked filesystem is in-memory only. So no data is persistent.  \nAlso, SFTP (TLS) is not already implemented.  \nThis mock ftp server is only meant to be used as an efficient way to mock a real FTP server in your test suites.  \n### Disclaimer\nOnly a minimal subset of the defined FTP commands are implemented. It is intended to work with methods from basic-ftp library, such as downloadTo, uploadFrom... And for now it only works in non-secure mode. Such features are likely to be implemented in the future.  \nContributions are welcome !\n","readmeFilename":"README.md","keywords":["FTP","mock","mocking","testing","test","CI/CD"]}