# mysql-apostrophe

> mysql-apostrophe is use to save in DB apostrophe without any error

Latest version **1.0.8** (published 2017-09-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install mysql-apostrophe
pnpm add mysql-apostrophe
yarn add mysql-apostrophe
bun add mysql-apostrophe
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-09-22 |
| First published | 2017-09-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ashutosh Jha |
| Maintainers | ashjha |
| Keywords | mysql, apostrophe, sql, injection, single quotes |

## Links

- npm: https://www.npmjs.com/package/mysql-apostrophe
- Repository: https://github.com/ashjha/mysql-apostrophe-
- Homepage: https://github.com/ashjha/mysql-apostrophe-#readme
- Issues: https://github.com/ashjha/mysql-apostrophe-/issues
- npm.io page: https://npm.io/package/mysql-apostrophe

## Recent versions

- 1.0.8 (latest) — 2017-09-22
- 1.0.7 — 2017-09-21
- 1.0.6 — 2017-09-19
- 1.0.5 — 2017-09-19
- 1.0.4 — 2017-09-19
- 1.0.3 — 2017-09-19
- 1.0.2 — 2017-09-19
- 1.0.1 — 2017-09-19
- 1.0.0 — 2017-09-19

## README

# mysql-apostrophe 

Whenever we want to save any field with apostophe in mysql, and we use syntex like 
var query = `INSERT INTO table_name (column1) VALUES ('${var}');` ; 

It will throw mysql error if your var is equals to alex's. This NPM is use to avoid this kind of errors. It is not working if you are sending data as JSON stringify.

## Example

``` js

var mysqlApostrophe = require("mysql-apostrophe");

var express = require('express');
var app = express();
var bodyParser = require('body-parser')

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended:true}));

app.use(mysqlApostrophe); //must be after bodyparser


```

## Install

``` cli
npm i mysql-apostrophe
```

## License

MIT

---
_Source: https://npm.io/package/mysql-apostrophe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
