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.2 to 0.0.5

dist/browser/agebrock-mino.js

17

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

@@ -17,10 +19,13 @@ "keywords": [

"author": "Christoph.Hagenbrock@googlemail.com",
"license": "ISC",
"license": "MIT",
"dependencies": {
"lodash": "^4.17.21",
"mingo": "^6.4.10"
},
"devDependencies": {
"jest": "^29.7.0"
"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"
}
}

@@ -31,3 +31,3 @@ # Mingo Collection for Convenient MongoDB-like Operations

```javascript
import { Collection } from "@agebrock/mimo";
import { Collection } from "agebrock-mimo";
```

@@ -40,3 +40,3 @@

```javascript
import { Collection } from "mingo-utilities";
import { Collection } from "agebrock-mimo";

@@ -65,2 +65,13 @@ // Create a collection instance with sample data

## Browser Usage
I recently added support for browser usage. To use this library in your browser, I did this for a personal project so please feel free to use it as you wish.
The client library is located in the dist/browser folder. Feel free to submit a pull request if you have any improvements. Or suggestions on how to improve it, since I
am not doing much client side development.
```javascript
// Import the library this will expose the mimo object
let result = mimo.collectionn([{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.

@@ -78,3 +89,3 @@

This project is powered by the Mingo library and lodash.
This project is powered by the Mingo library [npm](https://www.npmjs.com/package/mingo)

@@ -81,0 +92,0 @@ ## Contact

{
"exclude": ["**/*test.js","index.d.ts"],
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts","**/*.test.js"],
"compilerOptions": {

@@ -29,3 +30,3 @@

"module": "Node16", /* Specify what module code is generated. */
// "rootDir": "./src", /* Specify the root folder within your source files. */
"rootDir": "./src", /* Specify the root folder within your source files. */
"moduleResolution": "Node16", /* Specify how TypeScript looks up a file from a given module specifier. */

@@ -74,3 +75,3 @@ // "baseUrl": "./",

// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
"declarationDir": "./", /* Specify the output directory for generated declaration files. */
"declarationDir": "./types", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */

@@ -77,0 +78,0 @@

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