Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sql-escape npm npm

Escape SQL special characters and quotes in strings

Just publishing code taken from http://stackoverflow.com/a/7760578/700897 for use in JS projects. I take no credit for this code.

npm install sql-escape

Usage:

var escape = require('sql-escape');

var result = escape('my sweet "string"'); // my sweet \\"string\\"

About

Escape SQL special characters and quotes in strings.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages