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

easy-api

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-api

Super easy promise-base api declaration

Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
6
-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

easy-api

Super easy promise-based api declaration

Install / Launch

npm install --save easy-api

Usage

var easyApi = require('easy-api')
easyApi()
    .get('/messages', function() {
        return Promise.resolve(['lol'])
    })
    .post('/messages', function(messages) {
        return Promise.resolve()
    })
    .start(4567)

As of version 0.0.2, there is no handling of parameters in the get method.

Parameters for the post methods must be sent as an array, which will by given to the handler.

Many more things to come !

Tests

npm test

Keywords

easy

FAQs

Package last updated on 29 Aug 2015

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