Listing package name from .textlintrc
Main use case is installing npm package from .textlinrc
npm install textlintrc-to-package-list -g
$ textlintrc-to-package-list ./path/to/.textlintrc
Input .textlintrc
{
"plugins": [
"@textlint/html"
],
"filters": {
"comments": true
},
"rules": {
"@textlint/preset-ja-technical-writing": true,
"textlint-rule-no-todo": true,
"sentence-length": {
"max": 100
}
}
}
Output
@textlint/textlint-plugin-html
textlint-filter-rule-comments
@textlint/textlint-rule-preset-ja-technical-writing
textlint-rule-no-todo
textlint-rule-sentence-length
Install npm package from .textlintrc
npm install -g textlintrc-to-package-list
textlintrc-to-package-list .textlintrc | xargs npm install
or
npx --quiet textlintrc-to-package-list .textlintrc.json | xargs npm install
Do Install all package from .textlintrc
!
- 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
MIT