1.1.0 • Published 2 years ago

@sphido/meta v1.1.0

Weekly downloads
16
License
MIT
Repository
-
Last release
2 years ago

@sphido/meta

Page extender that add follow properties to page object:

  • page.title - try detect correct title from page.content
  • page.date - detect date if is not set by date of last change
  • page.slug - using slugify to made url safe slug
  • page.tags - create Set from tags

Install

yarn add @sphido/marked
import globby from 'globby';
import {getPages} from '@sphido/core';
import {frontmatter} from '@sphido/frontmatter';
import {meta} from '@sphido/meta';
import {markdown} from '@sphido/markdown';

(async () => {

	const pages = await getPages(
		await globby('content/**/*.md'),
		...[
			frontmatter,
            markdown,
            meta,
		],
	);

})();

Source codes

https://github.com/sphido/sphido/tree/main/packages/sphido-meta

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago