Demo entry 6631354

this is a code

   

Submitted by anonymous on Jul 13, 2017 at 12:42
Language: JavaScript. Code size: 319 Bytes.

const Config = require('electron-config');
const config = new Config();
 
config.set('unicorn', '🦄');
console.log(config.get('unicorn'));
//=> '🦄' 
 
// use dot-notation to access nested properties 
config.set('foo.bar', true);
console.log(config.get('foo'));
//=> {bar: true} 
 
config.delete('unicorn');

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).