Package Exports
- @putout/operator-keyword
- @putout/operator-keyword/lib/keyword.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@putout/operator-keyword) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@putout/operator-keyword 
🐊Putout operator adds ability to lint keyword.
Install
npm i putout @putout/operator-keywordAPI
import {operator} from 'putout';
const {
isKeyword,
isDeclarationKeyword,
isModuleDeclarationKeyword,
isConditionKeyword,
} = operator;
isKeyword('if');
// returns
true;
isKeyword('abc');
// returns
false;
isDeclarationKeyword('const');
// returns
true;
isModuleDeclarationKeyword('import');
// returns
true;
isConditionKeyword('if');
// returns
true;License
MIT