Socket
Socket
Sign inDemoInstall

agebrock-mimo

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

dist/commonjs/index.cjs

16

package.json
{
"name": "agebrock-mimo",
"version": "0.0.5",
"version": "0.0.6",
"description": "mongo like collection handling",
"types": "types/index.d.ts",
"main": "dist/commonjs/index.cjs",
"module": "src/index.mjs",
"type": "module",
"main": "src/index.js",
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"build": "tsc",
"build:browser": "rollup -c rollup.config.js"
"build": "npm run build:types && npm run build:browser && npm run build:cjs",
"build:types": "tsc",
"build:browser": "rollup -c rollup.iife.config.js",
"build:cjs": "rollup -c rollup.cjs.config.js"
},

@@ -24,8 +27,9 @@ "keywords": [

"devDependencies": {
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"jest": "^29.7.0",
"rollup": "^4.9.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"typescript": "^5.3.3"
}
}

@@ -72,4 +72,11 @@ # Mingo Collection for Convenient MongoDB-like Operations

## CommonJS Usage
Since 0.6 I have added support for commonjs usage.
```javascript
const mimo = require('agebrock-mimo');
let collection = mimo.collection([{a:1}]);
```
In this example, we create a `Collection` instance with sample data and use its methods (`find`, `findOne`, `exists`, `update`) for various operations. This allows you to easily work with collections and perform MongoDB-like operations in your code.

@@ -76,0 +83,0 @@

export function find(...args: any[]): unknown[];
/**
*
* @param {*} data
* @param {*} query
* @returns
*/
export function findOne(...args: any[]): unknown;

@@ -9,0 +3,0 @@ export function exists(data: any, query: any): boolean;

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc