Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-localstorage

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-localstorage - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

.babelrc

2

bower.json
{
"name": "vue-localstorage",
"version": "0.1.3",
"version": "0.2.0",
"description": "Vue.js localStorage plugin with types support",

@@ -5,0 +5,0 @@ "main": "vue-localstorage.js",

{
"name": "vue-localstorage",
"version": "0.1.3",
"version": "0.2.0",
"description": "Vue.js localStorage plugin with types support",
"main": "vue-localstorage.js",
"main": "dist/vue-local-storage.js",
"scripts": {
"build:es": "rollup -c build/rollup.es2015.js",
"build:main": "rollup -c build/rollup.config.js",
"build:minify": "rollup -c build/rollup.minify.js",
"build": "npm run build:es; npm run build:main; npm run build:minify",
"test": "jest"
},
"repository": {

@@ -20,3 +27,16 @@ "type": "git",

},
"homepage": "https://github.com/pinguinjkeke/vue-local-storage#readme"
"homepage": "https://github.com/pinguinjkeke/vue-local-storage#readme",
"devDependencies": {
"babel-jest": "^19.0.0",
"babel-preset-es2015": "^6.24.1",
"jest": "^19.0.2",
"mock-local-storage": "^1.0.2",
"rollup": "^0.41.6",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"rollup-plugin-uglify": "^1.0.2",
"vue": "^2.3.0"
}
}

@@ -5,3 +5,3 @@ # VueLocalStorage

Vue.js localStorage plugin with types support
localStorage plugin with types support for Vue.js and Vue.js 2.

@@ -23,2 +23,9 @@ ## Install

Vue.use(VueLocalStorage)
// Use localStorage from Vue object
Vue.$localStorage.set('someNumber', 123)
Vue.$localStorage.get('someNumber')
// Fallback value if nothing found in localStorage
Vue.$localStorage.get('propertyThatNotExists', 'fallbackValue') // Will return 'fallbackValue' string

@@ -25,0 +32,0 @@ var vm = new Vue({

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc