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

ellipse

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ellipse

Minimalistic toolchain to make writing of vanilla http servers more enjoyable.

  • 0.5.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-26.32%
Maintainers
1
Weekly downloads
 
Created
Source

view on npm npm module downloads per month Analytics

Ellipse

It's a super-simplified web framework inspired by Express for those cases when you don't need templates, render engines and all the fancy stuff. A combination of a router, a middleware chain and a bunch of response helper utilities. Not more, not less.

Usage


var ellipse = require('ellipse'),
    app     = ellipse()

app.get('/', function (req, res) {
    var name = req.query.name || 'Ellipse'

    res.send('Welcome ' + name + '!')
})

app.get('/:name', function (req, res) {
    res.html('<h1>Hello ' + req.params.name + '!</h1>')
})

app.get('/:greeting/:name', function (req, res) {
    res.json({
        status: 'success',
        data: {
            greeting: req.params.greeting,
            name:     req.params.name
        }
    })
})

app.listen(3333, function () {
    console.log('server is ready to accept connections on port 3333')
})

For more information, see the examples.

Installation

With npm:

npm install --save ellipse

With git:

git clone git://github.com/schwarzkopfb/ellipse.git

License

MIT license.

Keywords

FAQs

Package last updated on 02 Nov 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

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