Skip to content

cloudspace/cs-forage-expire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#CS Forage Expire

Service that wraps localForage to allow storing items with an expiration Requires: localForage, moment.js

ForageExpire.setItem('someData', 'I want to expire this in 1 day', moment().add(1, 'days))
ForageExpire.getItem('someData', function(data){ console.log(data); })

Testing

There is currently an issue running localforage through Karma. There is communication with Mozilla on resolving this issue. Tests will be written when that issue has been resolved.

Development Setup

  • npm install
  • bower install
  • npm install -g uglify

Use with bower

"cs-forage-expire": "[email protected]:cloudspace/forage-expire.git#master",

Include the following in your html

<script src='./<my_base_path>/bower_components/dist/cs-forage-expire.min.js'></script>

To minify

uglifyjs ./lib/cs-forage-expire.js ./lib/cs-forage-expire-factory.js -o ./dist/cs-forage-expire.min.js

Releases

TBD

Contribution

TBD

About

Angular service for expiring localforage items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published