JSPM

fs-persistence-adapter

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q28093F
  • License MIT

An implementation of the Alexa Persistence Adapter using the file system

Package Exports

  • fs-persistence-adapter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fs-persistence-adapter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

File System Persistence Adapter

An implementation of the Alexa Persistence Adapter using the file system

module version  GitHub license  contributions welcome

What is Alexa

Alexa is Amazon’s cloud-based voice service (...). You can build natural voice experiences that offer customers a more intuitive way to interact with the technology they use every day (...).

What is a Skill

In this context, a Skill is the name assigned to an application designed to enhance Alexa's functionalities.

Learn more about Skills on Alexa Skills Kit.

File System Persistence Adapter

The File System Persistence Adapter implements the ASK Core interface with the same name and provides a bridge between the FileSystem node.js library and the Alexa Persistence Attributes.

Install

When you creating your skill, just import fs-persistence-adapter into your package.json, or alternatively run:

    npm i fs-persistence-adapter

and import into your project using one of two options bellow:

    const { FileSystemPersistenceAdapter } = require('fs-persistence-adapter');

    ...Alexa.SkillBuilders.custom().withPersistenceAdapter(
        new FileSystemPersistenceAdapter('path/to/file') // to save all attributes of all users in a single file
        /* OR */
        new FileSystemPersistenceAdapter('path/') // to save attributes in files separated by user id
    )
NOTE: The path needs to already exists, only the files are created.

Author

License

Under MIT License