Gathering detailed insights and metrics for @ikoala/node-mysql-promise
Gathering detailed insights and metrics for @ikoala/node-mysql-promise
Gathering detailed insights and metrics for @ikoala/node-mysql-promise
Gathering detailed insights and metrics for @ikoala/node-mysql-promise
npm install @ikoala/node-mysql-promise
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (59.58%)
JavaScript (40.42%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
99 Commits
7 Forks
3 Watchers
4 Branches
3 Contributors
Updated on Jan 07, 2025
Latest Version
2.0.2
Package Id
@ikoala/node-mysql-promise@2.0.2
Unpacked Size
3.22 MB
Size
783.60 kB
File Count
20
NPM Version
10.8.2
Node Version
20.18.1
Published on
Jan 07, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Node.js MySQL library promise wrapper
npm install @ikoala/node-mysql-promise
1const db = require('@ikoala/node-mysql-promise') 2const mysqlConfig = { 3 "host": "127.0.0.1", 4 "user": "root", 5 "password": "abc@123", 6 "database": "test" 7} 8db.create('master', mysqlConfig) 9 10const query = async (val) => { 11 const sql = 'SELECT NOW(), ?, 1' 12 const params = [val] 13 const rs = await db.query(sql, params) 14 console.log(rs) // 2020-02-01 15:56:00,foo,1 15} 16 17query('foo')
1const select = helper.createSelect('table_name', 'primary_key_field'); 2(async () => { 3 await select({ all: true }) // Select all records 4 await select(1) // Select primary key id 1 5 // Select field `foo` with value `bar` 6 await select({ where: { 7 foo: 'bar' 8 }}) 9})() 10 11const insert = helper.createInsert('table_name', 'primary_key_field', { 12 defaultFields: { 13 ctime: () => new Date() 14 } 15}); 16(async () => { 17 await insert({ 18 field1: 'foo', 19 field2: 'bar' 20 }) // foo,bar,[ctime date] 21})()
1# Setup DB Connection and Login Credential 2export DB_HOST=127.0.0.1 3export DB_USER=root 4export DB_PASSWORD=abc@123 5export DB_VERBOSE=1 # Optional, enable query log
npm run test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/15 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More