ftpd-lite 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ftpd-lite
|
|
2
2
|
|
|
3
3
|
An FTP server with multiple users and permission control, written in Node.js + TypeScript.
|
|
4
4
|
It is imported as a library (`require`/`import`), and the port listening process starts when you call `start()`.
|
|
@@ -6,13 +6,13 @@ It is imported as a library (`require`/`import`), and the port listening process
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
npm install
|
|
9
|
+
npm install ftpd-lite
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
## Quick Start
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
const { FtpServer } = require('
|
|
15
|
+
const { FtpServer } = require('ftpd-lite');
|
|
16
16
|
|
|
17
17
|
const server = new FtpServer({
|
|
18
18
|
port: 21,
|
|
@@ -36,7 +36,7 @@ server.start();
|
|
|
36
36
|
TypeScript:
|
|
37
37
|
|
|
38
38
|
```ts
|
|
39
|
-
import { FtpServer, type ServerConfig } from '
|
|
39
|
+
import { FtpServer, type ServerConfig } from 'ftpd-lite';
|
|
40
40
|
|
|
41
41
|
const config: ServerConfig = {
|
|
42
42
|
port: 21,
|