Lightweight package (v1.0.0) that uses a regex-based approach to detect potential SQL injection strings in user input. It exposes a single `isSQLInjection` function that returns a boolean indicating whether the input contains patterns commonly associated with SQL injection attacks. The package is minimal, with no dependencies, but its regex-based detection is simplistic and not suitable for production security; it should only be used for basic sanitization or educational purposes. Maintained on GitHub with CI and coverage, though release cadence is irregular.
npm install is-sql-injectionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: checking strings for potential SQL injection patterns.
Do not rely on this package for security-critical applications. Use a proper ORM with parameterized queries.
Consider additional input validation or use a dedicated security library.
Use import instead of require, or set type: 'module' in package.json for Node >= 12.
Use import isSQLInjection from 'is-sql-injection' (default import, not named import).
No dependency data recorded yet.