Use Gray-matter
Import gray-matter
Pass a string to gray-matter.
Returns:
Example.
Create file file.html
with the following content.
Create file example.js
with the following content.
Run in the terminal
As a result an object like this.
Reference Links
Last updated