Prepend data to a file, creating it if it doesn't exist.
npm install prepend-file
const prependFile = require('prepend-file');
(async () => {
await prependFile('message.txt', 'some data');
});
Type: string
The file to prepend the data
to.
Type: string | Buffer
The data to prepend.