scim-docs/node_modules/tiny-matter/example/index.js
2024-08-29 12:10:19 +02:00

4 lines
213 B
JavaScript

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 }));