diff --git a/docs/index.md b/docs/index.md index 30d8c96..f83715a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -9,7 +9,7 @@ jsftpd is an FTP server written for node.js. It's feature set is: ## Install -```{code-block} javascript +```{code-block} shell npm install jsftpd ``` @@ -20,7 +20,7 @@ To get an FTP server running quickly, the below code will get you started by all ```{code-block} javascript const { ftpd } = require('jsftpd') -const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'}) +const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'}}) server.start() ``` diff --git a/readme.md b/readme.md index ced1f7d..8d68581 100644 --- a/readme.md +++ b/readme.md @@ -13,7 +13,7 @@ FTP server for node.js Either download from [here](https://github.com/mailsvb/jsftpd/releases) or install via npm. -``` +```shell $ npm install jsftpd ``` @@ -21,10 +21,10 @@ $ npm install jsftpd To get an FTP server running quickly, the below code will get you started by allowing access for a single user. -``` +```js const { ftpd } = require('jsftpd') -const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'}) +const server = new ftpd({cnf: {username: 'john', password: 'doe', basefolder: '/tmp'}}) server.start() ```