UNPKG

obj-chain-core

Version:

fluent chaining for obj with dot-prop access

19 lines (15 loc) 315 B
const File = require('file-chain') const FilePlugin = { save() { this.file.setContent(this.toJSON()).write() return this }, dir(dir) { this.file.src('package.json') this.file.dir(dir) return this // return this.set('dir', dir) }, file: new File(), } module.exports = FilePlugin