Add getPageCount
This commit is contained in:
parent
de3172ee95
commit
5e970cad74
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ export function getSentenceCount(text: string): number {
|
|||
return sentences;
|
||||
}
|
||||
|
||||
export function getPageCount(text: string, pageWords: number): number {
|
||||
return parseFloat((getWordCount(text) / pageWords).toFixed(1));
|
||||
}
|
||||
|
||||
export function getTotalFileCount(vault: Vault): number {
|
||||
return vault.getMarkdownFiles().length;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue