New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

imapflow

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imapflow - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

CHANGELOG.md

75

package.json
{
"name": "imapflow",
"version": "1.0.0",
"description": "IMAP Client for Node",
"main": "lib/imapflow.js",
"scripts": {
"test": "grunt"
},
"repository": {
"type": "git",
"url": "git+https://github.com/andris9/imapflow.git"
},
"keywords": [],
"author": "Andris Reinman",
"license": "UNLICENSED",
"bugs": {
"url": "https://github.com/andris9/imapflow/issues"
},
"homepage": "https://github.com/andris9/imapflow#readme",
"devDependencies": {
"eslint": "^6.7.2",
"eslint-config-nodemailer": "^1.2.0",
"eslint-config-prettier": "^6.7.0",
"grunt": "^1.0.4",
"grunt-cli": "^1.3.2",
"grunt-contrib-nodeunit": "^2.0.0",
"grunt-eslint": "^22.0.0"
}
"name": "imapflow",
"version": "1.0.1",
"description": "IMAP Client for Node",
"main": "./lib/imap-flow.js",
"scripts": {
"test": "grunt",
"prepare": "npm run build",
"docs": "rm -rf docs && mkdir -p docs && jsdoc lib/imap-flow.js -c jsdoc.json -t ./node_modules/jsdoc-baseline -R README.md --destination docs/",
"dst": "jsdoc -t node_modules/tsd-jsdoc/dist -r lib/imap-flow.js --destination lib/",
"build": "npm run docs && npm run dst"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nodemailer/imapflow.git"
},
"keywords": [
"imap",
"email",
"mail"
],
"author": "Andris Reinman",
"license": "UNLICENSED",
"bugs": {
"url": "https://github.com/nodemailer/imapflow/issues"
},
"homepage": "https://imapflow.com/",
"devDependencies": {
"eslint": "6.8.0",
"eslint-config-nodemailer": "1.2.0",
"eslint-config-prettier": "6.9.0",
"grunt": "1.0.4",
"grunt-cli": "1.3.2",
"grunt-contrib-nodeunit": "2.0.0",
"grunt-eslint": "22.0.0",
"jsdoc": "3.6.3",
"jsdoc-baseline": "0.1.5",
"tsd-jsdoc": "2.4.0"
},
"dependencies": {
"encoding-japanese": "1.0.30",
"iconv-lite": "0.5.0",
"libbase64": "1.2.1",
"libmime": "4.2.1",
"libqp": "1.1.0",
"mailsplit": "4.6.3",
"pino": "5.16.0",
"utf7": "1.0.2"
}
}

@@ -1,2 +0,63 @@

# imapflow
IMAP Client
# ImapFlow
IMAP Client for Node.js extracted from [NodemailerApp project](https://nodemailer.com/app/).
The focus for ImapFlow is to provide easy to use API over IMAP.
## Usage
First install the module from npm:
```
$ npm install imapflow
```
next import the ImapFlow class into your script:
```js
const { ImapFlow } = require('imapflow');
```
All ImapFlow methods use Promises, so you need to wait using `await` or wait for the `then()` method to fire until you get the response.
```js
const { ImapFlow } = require('imapflow');
const client = new ImapFlow({
host: 'ethereal.email',
port: 993,
secure: true,
auth: {
user: 'garland.mcclure71@ethereal.email',
pass: 'mW6e4wWWnEd3H4hT5B'
}
});
const main = async () => {
// wait until client connects and authorizes
await client.connect();
// select a mailbox
await client.mailboxOpen('INBOX');
// fetch latest message source
let message = await client.fetchOne('*', { source: true });
console.log(message.source.toString());
// log out and close connection
await client.logout();
};
main().catch(err => console.error(err));
```
## Documentation
[API reference](https://imapflow.com/ImapFlow.html).
ImapFlow has TS typings set for compatible editors.
## License
© 2020 Andris Reinman
Licensed for evaluation use only
'use strict';
const { ImapFlow } = require('../lib/imapflow');
const { ImapFlow } = require('../lib/imap-flow');

@@ -5,0 +5,0 @@ module.exports['Create imapflow instance'] = test => {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc