New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

promisequel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promisequel

promise wrapper for mysql library

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

promisequel

simple mysql promise wrapper package

install :

npm i promisequel

usage example :

const promisequel = require('promisequel')

const config = {
    host: process.env.DATABASE_HOST,
    user: process.env.DATABASE_USER,
    password: process.env.DATABASE_PASSWORD,
    database: process.env.DATABASE_NAME
}

const db = new promisequel(config)

db.query('select * from `example` where id = ?', 1)
    .then(result => {
        console.log(result)
        db.close()
    }).catch(err => {
        console.log(err)
    })

Keywords

mysql

FAQs

Package last updated on 13 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts