Skip to content

Question: how to include the file where using findDown #84

Answered by wooorm
incompletude asked this question in Q&A
Discussion options

You must be logged in to vote

You are missing the docs for the trees:

import { read } from "to-vfile"
import { findDown } from "vfile-find-down"

const files = await findDown(".mdx", "src/posts")
await Promise.all(files.map((f) => { read(f) }))

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@incompletude
Comment options

@wooorm
Comment options

@incompletude
Comment options

@wooorm
Comment options

Answer selected by ChristianMurphy
@incompletude
Comment options

@incompletude
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants