JSPM

@touchflows/buzzcasting-core

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q58315F
    • License UNLICENSED

    BuzzCasting Manager for data, session, token and user management

    Package Exports

    • @touchflows/buzzcasting-core

    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 (@touchflows/buzzcasting-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    BuzzCasting Core

    BuzzCasting Management of session, data, user, and token functions.

    ## Getting started
    
    Install it with npm:
    

    npm install @touchflows/buzzcasting-core

    
    Then import the different parts:
    
    ```js
    import BuzzCasting from '@touchflows/buzzcasting-core';
    const BuzzCasting = require('@touchflows/buzzcasting-core');

    SessionStorage

    typed variables are stored in sessionStorage with the prefix buzzcasting. Getting the variable will retrieve it the way it was stored i.e. a string, an array, an object

    import { BuzzCasting } from 'buzzcasting-core';
    
    BuzzCasting.session.set('slide-0.posts', {data: [{id: 1, title: 'Post'}]});     // Set it
    let posts = BuzzCasting.session.get('slide-0.posts');  // Get it
    BuzzCasting.session.delete('slide-0.posts');   // Eat it