New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mongo-crest

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-crest

A deployable and customizable REST-API server for MongoDB

latest
npmnpm
Version
1.1.0
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm i -g mongo-crest

Usage

npm start

About

A deplyable and customizable REST-API server. The core API functions can be found in src/ while the schema is in src/schema. The validator function in src/validate.coffee will be ran for every request. This function will run the request data against the schema.

Schemas

The schemas are simply hash tables of regular expressions. Each field that is being requested will be tested against the regex.

contact =
    firstName: /[a-z]{2,32}/i
    lastName: /[a-z]{2,32}/i
    email: /[a-z0-9\_\-\.]{2,32}@[a-z0-9\_\-\.]{2,32}/i
    website: /[a-z0-9\_\-\.]{5,64}/i

Keywords

api

FAQs

Package last updated on 22 Jul 2017

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