@textstat/textstat
textstat kernel.
This kernel module is same position with @textlint/kernel.
Install
Install with npm:
npm install @textstat/kernel
Usage
const kernel = new TextstatKernel();
const result = await kernel.report(`# Header
This is example.
`, {
rules: [{
ruleId: "textstat-rule-example",
rule: rule
}],
plugins: [{
pluginId: "markdown",
plugin: require("@textlint/textlint-plugin-markdown")
}],
filterRules: [],
sharedDeps: {
filePathList: ["/path/to/example.md", "/path/to/example.a.md"]
},
filePath: "/path/to/example.md",
ext: ".md"
});
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu