A port(ish) of Tie::File, this creates an array-like object with the contents of a file on disk, where all modifications are written to the file automatically.
Very incomplete, untested, something of a PoC at this point.
Line objects act like strings but add a few extra methods that allow them to be modified in-place:
Replace the line with
Just like String.prototype.replace, but will
swap the line with the return value.
Places one or more strings at the start/end of the line.
Array access doesn't work (yet?), for now you must use the
set methods. I'm not sure how best to do this without resorting to ES6 proxies.