@dashlane/mirror-email-analysis

analyse emails for mirror

Usage no npm install needed!

<script type="module">
  import dashlaneMirrorEmailAnalysis from 'https://cdn.skypack.dev/@dashlane/mirror-email-analysis';
</script>

README

Mirror Email Analysis

Usage

  • Only supports GMail
  • You must have an active Google app
  • You must provide an OAuth token

Example usage:

const EmailAnalysis = require('@dashlane/mirror-email-analysis')

const authParams = {
    email: 'jean@jacques.edu',
    googleClientID: 'dsgjKJSDKGJB124bnKHJBKHB12412',
    googleClientSecret: 'secret',
    refreshToken: '102894124kjbjkhv1j2hgvj1hv41j24',
    accessToken: '0848128041jnkgjsdg'
}

EmailAnalysis
    .extractAccounts(authParams)
    .then(accounts => {
        // do something with the accounts
    })

EmailAnalysis
    .getPasswordResetLink(domain, authParams)
    .then(resetLink => {

    })

If you're feeling dangerous, you can also use username/password authentication:

EmailAnalysis
    .extractAccounts({
        email: 'jean@jacques.edu',
        password: 'p@$w0rD'
    })
    .then(accounts => ...)

Nota bene from port

  • config.isLearning replaced with process.env.LEARNING_DEBUG
  • inbox and mimelib, having been modified directly in the node_modules in washlane, are here added in vendor
  • dlog doesn't do much for now