This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@mdxvac/vfile-astro
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@mdxvac/vfile-astro

Astro-enhanced VFile type, typing the astro.frontmatter property.

Content

What is this?

This package just declares an ambient module vfile-astro.

When should I use this?

If you are working with Unified/Vite/Markdown files that have been preprocessed by Astro and contain frontmatter, then this declaration will give you a typed experience.

Install

This package is ESM only. In Node.js (version 12.20+, 14.14+, or 16.0+), install with npm:

npm install -D @mdxvac/vfile-astro

Use

import type { VFile } from 'vfile-astro';

...
  file.data.astro.frontmatter[property] = value;

Package Sidebar

Install

npm i @mdxvac/vfile-astro

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

1.79 kB

Total Files

3

Last publish

Collaborators

  • shackhacker-christian