Closed Yrobot closed 3 years ago
Have you tried the .stringify method? Here's an example
Have you tried the .stringify method? Here's an example
oops!!!!! .stringfly works fine.
I create a package yestoday called gray-matter-editor, with which we can update file matter-data in one function. editor will auto write matter-data into file.
editor($FILE_PATH, (oldData) => ({
...oldData,
author: 'yrobot',
}));
gray-matter can read matter-data from markdown file. but when i want to update the matter-data in nodejs file, i am confused. is there decent way to do so?