(data)
| 89 | } |
| 90 | |
| 91 | write (data) { |
| 92 | this.data = data = data || this.data; |
| 93 | fs.writeFileSync( |
| 94 | this.fullpath(), |
| 95 | Object.keys(data) |
| 96 | .map(key => `${key}=${data[key]}`) |
| 97 | .join('\n') + '\n' |
| 98 | ); |
| 99 | return data; |
| 100 | } |
| 101 | |
| 102 | get (key, defaultValue) { |
| 103 | return key in this.data ? this.data[key] : defaultValue; |
no test coverage detected