@mr-hope/vuepress-plugin-reading-time
Version:
Reading time plugin for vuepress
18 lines (17 loc) • 519 B
TypeScript
import type { ReadingTime } from "../types";
/**
* Extract Latin words from content
*/
export declare const getWords: (content: string) => RegExpMatchArray;
/**
* Extract Chinese Characters from content
*/
export declare const getChinese: (content: string) => RegExpMatchArray;
/**
* Get word number of given string
*/
export declare const getWordNumber: (content: string) => number;
/**
* Get reading time info
*/
export declare const getReadingTime: (content: string, wordsPerMinute?: number) => ReadingTime;