No Proscribed Meaning

    storage-key-value

    1.0.6 • Public • Published

    Usage:

    Server:

    var Storage = require('storage-key-value');
    
    
    var app = express();
    
    Storage.init({
    	file: path.dirname(process.mainModule.filename) + '/storage.json',
    	path: '/storage',
    	pretty: false
    });
    
    app.use(Storage);
    

    Client:

    <script src="/storage.js" type="text/javascript"></script>
    <script type="text/javascript">
    
    	var __storage = {
    		my: 'initial_data',
    		without: 'this we would make initial ajax request'
    	};
    
    	Storage.init({
    		path: '/storage',
    		localStorage: 'storage',
    		dataKey: '__storage'
    	});
    
    	Storage.get('my') // 'initial_data';
    	Storage.set('my_key', { my_value: 123456 });
    	Storage.get('my_key'); // { my_value: 123456 }
    </script>
    

    Install

    npm i storage-key-value

    DownloadsWeekly Downloads

    0

    Version

    1.0.6

    License

    ISC

    Last publish

    Collaborators

    • dev-null