Package Exports
- dotf
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dotf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
dotf
Manage multiple dotfile.
yarn add dotfFeatures
- Absolute or relative dotfiles
Example
let dotf = require('dotf');
let dotrc = dotf('~/myrc'); // Global (~)
let dotignore = dotf('./myignore'); // Local (./)
let dotsettings = dotf('mysettings'); // Local (./)
dotrc.exists().then((exists) => {
// boolean
console.log(exists);
})
dotrc.read().then((data) => {
// read data
console.log(data);
})
dotrc.write({a: 1}).then((data) => {
// overwrote data
console.log(data);
});