text: // Copyright 2020 IOTA Stiftung
  // SPDX-License-Identifier: Apache-2.0
  
  async function run() {
    try {
      const { AccountManager, StorageType, SignerType } = require('../lib')
      const manager = new AccountManager({
        storagePath: './test-database',
        storageType: StorageType.Stronghold
      })
      manager.setStrongholdPassword('password')
  
      const account = manager.createAccount({
        signerType: SignerType.EnvMnemonic,
        clientOptions: { node: 'http://localhost:14265' }
      })
      account.setAlias('banana')
    } finally {
      const fs = require('fs')
      try {
      fs.rmdirSync('./test-database', { recursive: true })
      } catch (e) {
        // ignore it
      }
    }
  }
  
  run()