-
Notifications
You must be signed in to change notification settings - Fork 15
Updated README.md #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,9 @@ | |
|
|
||
| # smtp-client | ||
|
|
||
| > Simple, promisified, protocol-based SMTP client for Node.js. | ||
| > Simple promised, protocol-based SMTP client for Node.js. | ||
|
|
||
| This is an open source [npm](http://npmjs.com) package from [Node.js](http://nodejs.org). The source code is available on [GitHub](https://github.com/xpepermint/smtp-client) where you can also find our [issue tracker](https://github.com/xpepermint/smtp-client/issues). | ||
| This is an open-source [npm](http://npmjs.com) package from [Node.js](http://nodejs.org). The source code is available on [GitHub](https://github.com/xpepermint/smtp-client) where you can also find our [issue tracker](https://github.com/xpepermint/smtp-client/issues). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Open-source in this case is used as an adjective, and the correct spelling is in fact "open-source", as suggested. |
||
|
|
||
| ## Related Projects | ||
|
|
||
|
|
@@ -79,15 +79,15 @@ Note that all instance methods throw an error when something goes wrong or when | |
|
|
||
| **SMTPClient.prototype.connect({timeout})**:Promise; | ||
|
|
||
| > Connects to the SMTP server and starts socket I/O activity. | ||
| > Connects to the SMTP server and starts to socket I/O activity. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A socket is one endpoint of a two-way communication link between two programs running on the network. |
||
|
|
||
| | Option | Type | Required | Default | Description | ||
| |--------|------|----------|---------|------------ | ||
| | timeout | Integer | No | 0 | A time in milliseconds after the operation automatically rejects (`0` disables the timeout). | ||
|
|
||
| **SMTPClient.prototype.data(source, {sourceSize, timeout})**:Promise; | ||
|
|
||
| > Sends the DATA command to the server which uploads the `source` of an email and finalize the process with the `.` (automatically appended to the source). | ||
| > Sends the DATA command to the server which uploads the `source` of an email and finalizes the process with the `.` (automatically appended to the source). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Finalize can in this instance be interpreted as command, therefore it is correct. |
||
|
|
||
| | Option | Type | Required | Default | Description | ||
| |--------|------|----------|---------|------------ | ||
|
|
@@ -169,23 +169,23 @@ Note that all instance methods throw an error when something goes wrong or when | |
|
|
||
| **SMTPClient.prototype.parseEnhancedReplyCode(line)**:String; | ||
|
|
||
| > A helper method which parses and returns the enhanced reply code from the provided SMTP server reply. | ||
| > A helper method that parses and returns the enhanced reply code from the provided SMTP server reply. | ||
|
|
||
| | Option | Type | Required | Default | Description | ||
| |--------|------|----------|---------|------------ | ||
| | line | String | Yes | - | SMTP server reply string. | ||
|
|
||
| **SMTPClient.prototype.parseReplyCode(line)**:String; | ||
|
|
||
| > A helper method which parses and returns the reply code from the provided SMTP server reply. | ||
| > A helper method that parses and returns the reply code from the provided SMTP server reply. | ||
|
|
||
| | Option | Type | Required | Default | Description | ||
| |--------|------|----------|---------|------------ | ||
| | line | String | Yes | - | SMTP server reply string. | ||
|
|
||
| **SMTPClient.prototype.parseReplyText(line)**:String; | ||
|
|
||
| > A helper method which parses and returns the message part of the provided SMTP server reply. | ||
| > A helper method that parses and returns the message part of the provided SMTP server reply. | ||
|
|
||
| | Option | Type | Required | Default | Description | ||
| |--------|------|----------|---------|------------ | ||
|
|
@@ -230,8 +230,8 @@ Note that all instance methods throw an error when something goes wrong or when | |
|
|
||
| | Option | Type | Required | Default | Description | ||
| |--------|------|----------|---------|------------ | ||
| | data | String,Stream,Buffer | Yes | - | Data to be sent to the SMTP server. Make sure that you apply to the SMTP rules and complete lines with `\r\n`. When sending email data stream, make sure you include the `.` as the last line. | ||
| | handler | Function,Promise | No | - | A method for handling SMTP server replies. | ||
| | data | String, Stream, Buffer | Yes | - | Data to be sent to the SMTP server. Make sure that you apply to the SMTP rules and complete lines with `\r\n`. When sending email data stream, make sure you include the `.` as the last line. | ||
| | handler | Function, Promise | No | - | A method for handling SMTP server replies. | ||
| | timeout | Integer | No | 0 | A time in milliseconds after the operation automatically rejects (`0` disables the timeout). | ||
|
|
||
| **Event: close**: () => {} | ||
|
|
@@ -268,7 +268,7 @@ Note that all instance methods throw an error when something goes wrong or when | |
|
|
||
| | Argument | Type | Description | ||
| |----------|------|------------ | ||
| | chunk | Buffer,String | A chunk of data. | ||
| | chunk | Buffer, String | A chunk of data. | ||
|
|
||
| **Event: reply**: (line) => {} | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Promisify is a method that defines in utilities module of Node. js the standard library, so "promisified" is correct.