scim-docs/node_modules/tiny-matter/example/index.js

5 lines
213 B
JavaScript
Raw Normal View History

2024-08-29 10:10:19 +00:00
const matter = require('..');
console.log(matter('---\ntitle: Front Matter\n---\nThis is content.'));
console.log(matter('---\n{ "title": "Front Matter" }\n\n\n\n---\nThis is content.', { parser: JSON.parse }));