shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- path*-String
The file path you want to check. With or without an extension
- 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
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space