dfrankland / lastpass-node

🔐 Lastpass client for Node.js
28 stars 10 forks source link

Account not displayed like lastpass-cli #3

Open nionis opened 8 years ago

nionis commented 8 years ago

It seems like lastpass-cli gives u a better parsed account for example:

lastpass-node

{
  id: '123',
  name: 'API 1',
  group: 'test',
  url: 'http://sn',
  notes: 'NoteType:Server\nHostname:somehost\nUsername:root@***\***\nNotes:testnote',
  username: '',
  password: '',
  secureNote: true
}

where in lastpass-cli

Username: root@***
Password: ***
Hostname: somehost
NoteType: Server
Notes:testnote

Lastpass-cli parses Notetype, hostname, username, password from notes

dfrankland commented 8 years ago

Oh wow! I had no clue about that to be honest. That could be added pretty easily. Feel free to send a pull-request too btw.

nionis commented 8 years ago

I would be glad, working on it

nionis commented 8 years ago

here is the pull request