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

judd

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

judd

Intentionally simple serverless ripoff

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

judd

Poor mans serverless

Build Status

Judd sought autonomy and clarity for the constructed object and the space created by it, ultimately achieving a rigorously democratic presentation without compositional hierarchy. It created an outpouring of seemingly effervescent works that defied the term "minimalism"

[source] https://en.wikipedia.org/wiki/Donald_Judd

Overview

A POC and experiment in serverless style transient functions that can be loaded and and reloaded. There is no currently security so this is only suitable for experiments within a private network.

Todo

Test cli with process.exec Add security, change how functions are loaded. Allow loading functions from anywhere not just inside the modules directory. Maybe use the VM node.js module to sandbox running functions.

Command line usage

npm install judd -g

Launch the server

judd --listen

Add a function

Add functions to the modules directory where judd was installed globally on your machine.

judd --add --url demo --function demo.js

Now go to localhost:9999/demo

Reload a function

judd --add --url demo --function demo2.js

now go to localhost:9999/demo to see the new function, you must supply a different name for the module or file.

Module location

Load javascript functions from inside the /modules directory, if you have installed Judd globally that will be in different location on each operating system. You will be able to locate it with a bit of searching.

Module template

Judd simply associates a URL with the Event Emitter handler function fired by http.createServer...


var http = require('http');

var server = http.createServer(function this_one (req, res) {
	res.end('ok \n');
});

So a template is simply exporting a function with the request and response streams like so...

var crazy = require('crazy');

module.exports = function (req, res) {
	crazy(req, res);
}

Keywords

serverless

FAQs

Package last updated on 01 Feb 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