remotestorage-module-flashcards

1.2.1 • Public • Published

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

Param Type Description
frontText string Filename
backText string Filename

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

Param Type Description
group string The group name of the flashcard
id string The ID of the flashcard

get(id) ⇒ object

Get a flashcard.

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

Param Type Description
id string the 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

Param Type Description
group string the name of the group

/remotestorage-module-flashcards/

    Package Sidebar

    Install

    npm i remotestorage-module-flashcards

    Weekly Downloads

    0

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    22.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • slvrbckt