JSPM

session-cache

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1351
  • Score
    100M100P100Q105848F

Session storage for tasks.

Package Exports

  • session-cache

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

Readme

session-cache NPM version

Session storage for tasks.

Install

Install with npm

npm i session-cache --save

Run tests

npm test

Usage

Example of using sessions to pass data between gulp tasks.

var session = require('session-cache')('your app');

API

.createSession

Create a session with the given name

  • name {String}
  • returns: {Object}
var session = require('session')('your app');

.set

  • key {String}
  • value {*}
  • returns {*}: Returns the set value.

Assign value on the current session to key.

.get

  • key {String}
  • returns {*}: Value of the key or undefined

Get the stored value of key from the current session.

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Brian Woodward

License

Copyright (c) 2014 Brian Woodward
Released under the MIT license


This file was generated by verb on November 11, 2014.