Created
August 11, 2017 18:34
-
-
Save DylanCh/bec5df50a2de5f4f5599657c73b2c997 to your computer and use it in GitHub Desktop.
Node.JS localStorage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var localStorage = require('localStorage'); | |
localStorage.setItem('Apple', | |
`{ | |
"Products" : [ | |
{ "name": "iPhone"}, | |
{ "name": "iPad"}, | |
{ "name": "MacBook Pro"} | |
] | |
}`); | |
console.log(localStorage.getItem('Apple')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment