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

simple-rest-server

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

simple-rest-server

Simple rest server, based on a directory structure

latest
Source
npmnpm
Version
0.0.1-a
Version published
Maintainers
1
Created
Source

Simple Rest Server

A rest server that runs base on a directory structure

Getting Started

npm install simple-rest-server --save-dev

Usage

By default the server runs at port 5000, and the directory structure must be located at "./services"

mkdir services
mkdir services/test
echo "{ 'greeting': 'Hello World' }" > services/test/GET.json

node
> var server = require('simple-rest-server');
> server.init(); // start a server at 127.0.0.1:5000

Then, at your browser go to http://127.0.0.1:5000/test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 0.0.1 Initial release

    • Separated concerns
    • Logging support
  • 0.0.1a Cross Domain

    • Cross-domian support added

FAQs

Package last updated on 06 Jun 2014

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