Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
modli-mongo
Advanced tools
ATTENTION: In Development
This repository is currently in development.
This module provides adapter for the Mongo datasource for integration with Modli.
npm install modli-mongo --save
import { model, adapter, Joi, use } from 'modli';
import { mongo } from 'modli-mongo';
// Create a model
model.add({
name: 'testModel',
version: 1,
schema: {
/* ...schema properties... */
}
});
// Add adapter using NeDB
model.add({
name: 'testMongo',
source: mongo
config: {
/*...*/
}
});
const testModli = use('testModel', 'testMongo');
A Makefile
is included for managing build and install tasks. The commands are
then referenced in the package.json
scripts
if that is the preferred
task method:
all
(default) will run all build tasksstart
will run the main scriptclean
will remove the /node_modules
directoriesbuild
will transpile ES2015 code in /src
to /build
test
will run all spec files in /test/src
test-cover
will run code coverage on all testslint
will lint all files in /src
Running make test
will run the full test suite. Since adapters require a data
source if one is not configured the tests will fail. To counter this tests are
able to be broken up.
Test Inidividual File
An individual spec can be run by specifying the FILE
. This is convenient when
working on an individual adapter.
make test FILE=some.spec.js
The FILE
is relative to the test/src/
directory.
Deploys
For deploying releases, the deploy TAG={VERSION}
can be used where VERSION
can be:
<newversion> | major | minor | patch | premajor
Both make {COMMAND}
and npm run {COMMAND}
work for any of the above commands.
Modli-Mongo is licensed under the MIT license. Please see LICENSE.txt
for full details.
Modli-Mongo was designed and created at TechnologyAdvice.
FAQs
Modli adapter for Mongo
We found that modli-mongo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.