Skip to content

Plugin for .md file's stat? #855

Answered by howesteve
howesteve asked this question in General
Sep 21, 2021 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Question was perfectly clear. Ok, I solved this using a simple plugin:

function addStat() {
  return (_, file) => {
    file.data.fm.stat = fs.statSync(file.filename);
  }
}

Thanks.

Replies: 3 comments 6 replies

Comment options

@howesteve
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
4 replies
@howesteve
Comment options

@wooorm
Comment options

@howesteve
Comment options

@wooorm
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by howesteve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants