prependToFileSync

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.fs

This function allows you to simply append a string to a file.

Params

  1. path*-String

    The file path you want to check. With or without an extension

  2. content*-String

    The content to add to the file

Example

import { prependToFileSync } from '@blackbyte/sugar/fs';
prependToFileSync('/my/cool/file.txt', 'Hello world');

Todo

  • testsnormal