0.8.0 • Published 7 years ago
@textstat/kernel v0.8.0
@textstat/textstat
textstat kernel.
This kernel module is same position with @textlint/kernel.
Install
Install with npm:
npm install @textstat/kernelUsage
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 testContributing
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