New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mongo-search

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-search

utils for mongodb to search and display

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Utils for mongodb search and display

install

npm i mongo-search

usage

vue component

import vue from 'mongo-search/vue'
import Vue from 'vue'
Vue.use(vue)
<mongo-search src='/users' v-model='users' :search='search'></mongo-search>

###props

{
 src: { type: String, required: true },
    params: { type: Object },
    range: { type: String, default: '' },
    pageSize: { type: Number },
    value: {
        type: Array,
        default: () => []
    },
    desc: {
        type: Boolean,
        default: true
    },
    search: {
        type: String
    }
}

###methods getLast、getNext

koa middleware

const { MongoClient } = require('mongodb');
const searchM = require('mongo-search')
MongoClient.connect("mongodb://127.0.0.1:27017"), { useNewUrlParser: true }).then(x => {
    let db = x.db('test')
    router.get('/user',async ctx=>ctx.body=await searchM(db.collection('user')))
}

Keywords

FAQs

Package last updated on 18 Jan 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc