
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
A basic db/orm system with support for querying mysql-databases for your TypeScript (ES6) application.
Installing the package over npm:
$ npm install higg-orm --save
Simple example for making a select-query on an mysql-database.
Importing the needed modules/classes.
import {DatabaseAdapter, MysqlConnection, MysqlQuerySelect} from '../index';
Defining the connection-details in an simple object.
let connDetails ={
host: 'your_dbhost',
user: 'your_username',
password: 'your_password',
database: 'your_database'
};
Creating a new adapter for our mysql-database, by simply inject an MysqlConnection into the adapter and defining a name.
let adapter = new DatabaseAdapter(
new MysqlConnection(connDetails),
'provider_db'
);
Creating a select-query for the mysql-database and querying the users table with a limit of 1.
let query = new MysqlQuerySelect();
query
.from('user')
.limit(1);
Querying the database-adapter with the generated select-object and fetching the result. The query() function of DatabaseAdapter is returning a Promise, since the query is async. So we have
to use the .then().catch() syntax for getting the result or the error of the request.
adapter.query(query)
.then(result => {
console.log(result);
})
.catch(error => {
console.log('Error querying database: ' + error);
});
If you like to contribute to the package, feel free to fork the repository and make a pull-request. The repository can be found on github
npm test
Of course the package is very simple at the moment, there are plenty things to do:
FAQs
basic orm with support for mysql-database
The npm package higg-orm receives a total of 2 weekly downloads. As such, higg-orm popularity was classified as not popular.
We found that higg-orm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.