dotfun

Simple dotfile implementation for node.js

Usage no npm install needed!

<script type="module">
  import dotfun from 'https://cdn.skypack.dev/dotfun';
</script>

README

dotfun

Simple JSON dotfile implementation for node.js

Usage

var config = require('dotfile')('.mylocalrc');

config.set('something', 'configurable');
config.set('another', { key: 'value' });

config.get();
config.get('something');

If you want to set/get a dotfile from the user dir:

var config = require('dotfile')('.myuserrc', { home: true });
...