Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mootools.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mootools.js

MooTools latest server library as npm package for node.js

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

MooTools 1.4.0 Server

For more information about mootools visit http://mootools.net MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.

Mootools Server is a customized MooTools build without any component relative to browsers. Includes Class, Core and Native Extensions. Christoph Pojer have added wrapper and loader for node.js.

Installation

  • Get npm (http://npmjs.org)
  • run
    npm install mootools
  • Done

Usage

require("./mootools").apply(GLOBAL);

var Controller = new Class
({
	get: function(req, res) { not_found(); },
	
	post: function(req, res) { not_found(); },
	
	put: function(req, res) { not_found(); },
	
	del: function(req, res) { not_found(); },
	
	not_found: function()
	{
		res.writeHead(200, {'Content-Type': 'text/html'});
		res.end("404");
	}
});

var Controller1 = new Class
({
	Extends: controllers.Controller,
	
	get: function(req, res)
	{
		var result = "hello world!";
		res.writeHead(200, {'Content-Type': 'text/html'});
		res.end(result);
	}
});

Keywords

FAQs

Package last updated on 18 Sep 2011

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