Skip to content

Commit f70bcf7

Browse files
authored
Merge pull request #12 from Qiming-Liu/main
Fix error and improve in readme
2 parents 9587840 + 2cb20d3 commit f70bcf7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jsftpd is an FTP server written for node.js. It's feature set is:
99

1010
## Install
1111

12-
```{code-block} javascript
12+
```{code-block} shell
1313
npm install jsftpd
1414
```
1515

@@ -20,7 +20,7 @@ To get an FTP server running quickly, the below code will get you started by all
2020
```{code-block} javascript
2121
const { ftpd } = require('jsftpd')
2222
23-
const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'})
23+
const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'}})
2424
2525
server.start()
2626
```

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ FTP server for node.js
1313

1414
Either download from [here](https://github.com/mailsvb/jsftpd/releases) or install via npm.
1515

16-
```
16+
```shell
1717
$ npm install jsftpd
1818
```
1919

2020
## Quick start
2121

2222
To get an FTP server running quickly, the below code will get you started by allowing access for a single user.
2323

24-
```
24+
```js
2525
const { ftpd } = require('jsftpd')
2626

27-
const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'})
27+
const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'}})
2828

2929
server.start()
3030
```

0 commit comments

Comments
 (0)