check-reserved-keywords
v1.0.1
Published
Check commonly used languages reserved keywords
Downloads
5
Readme
check-reserved-keywords
Check commonly used languages reserved keywords
install
npm install check-reserved-keywords --save
use
import { isReservedKeywords, checkReservedKeywords } from 'check-reserved-keywords';
// Test word for langauge
const result = isReservedKeywords('const', ['ES6']);
if (result) {
console.log(`'const' is ES6 reserved keywords`);
} else {
console.log(`'const' is not ES6 reserved keywords`);
}
// known word in all include languages
const langauges = checkReservedKeywords('select', undefined, true);
console.debug(`select is reserved keyword in ${langauges.join(', ')}`);
Includes Language
T-SQL
: SQL SERVER Reserved KeywordsMySQL
: MySQL Reserved KeywordsOracle
: ORACLE SQL Reserved KeywordsODBC
: ODBC Reserved KeywordsES5
: JavaScript ES5 Reserved KeywordsES6
: JavaScript ES6 Reserved KeywordsJava
: Java Reserved KeywordsCSharp
: C# Reserved KeywordsPython
: Python Reserved KeywordsGo
: Go Reserved KeywordsRust
: Rust Reserved Keywords