1.2.1 • Published 5 years ago

remotestorage-module-flashcards v1.2.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

flashcards

A remoteStorage data module for flashcards.

Maintained by Nick Jennings nick@silverbucket.net

All flashcards are stored as timestamps.

store(frontText, backText) ⇒ Promise

Stores a flashcard

Kind: Exported function
Returns: Promise - A promise, which will be fulfilled with the updated flashcard object
Access: public

ParamTypeDescription
frontTextstringFilename
backTextstringFilename

Example

remoteStorage.flashcards.store(flashcard)
  .then((flashcard) => { console.log(`the updated flashcard object is: ${flashcard}`)

remove(group, id) ⇒ Promise

Remove a flashcard

Kind: Exported function
Access: public

ParamTypeDescription
groupstringThe group name of the flashcard
idstringThe ID of the flashcard

get(id) ⇒ object

Get a flashcard.

Kind: Exported function
Returns: object - The flashcard object
Access: public

ParamTypeDescription
idstringthe ID of the flashcard

listGroups() ⇒ Promise

List all flashcard groups

Kind: Exported function
Returns: Promise - Resolves with an array containing the flashcard group names
Access: public

getAllByGroup(group) ⇒ Promise

List all flashcards in a group

Kind: Exported function
Returns: Promise - Resolves with an array containing all the flashcard objects of that group
Access: public

ParamTypeDescription
groupstringthe name of the group
1.2.1

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago