Giter VIP home page Giter VIP logo

mootools-node's Introduction

Move with the times and use something modern instead.

MooTools 1.5.2 Server

For more information about mootools in general I suggest you visit http://mootools.net In short it is a library for web development, with support for OOP.

Mootools Server is a stripped down version that gives you all the nice things from the mootools library, sans the browser-specific stuff

Installation

  • Get Node
  • run npm install mootools
  • Done

Usage

Calling require('mootools') will import it into the global scope, and you'll be able to do things like

var Application = new Class(
{
    Implements: [process.EventEmitter],
    initialize: function()
    {
        //initialize here
    },
    compute: function()
    {
        //some code
        this.emit("done");
    }
});

var app = new Application();
app.on("done", function() { /* Callback */ });
app.compute();

You can also use other things that mootools provides, like Options and Events (mootools events might not be as efficient as the native EventEmitter stuff)

mootools-node's People

Contributors

vsviridov avatar kefiriaus avatar mcandre avatar

Stargazers

Trần Quốc Thiện avatar Thien Tran avatar Tiago Nunes avatar Marlon Hille avatar Wes McNamee avatar Jason Wiener avatar Sergio Crisostomo avatar Matti Schneider avatar Mischa ter Smitten avatar Bo avatar Valter Kungla avatar Ivo von Putzer Reibegg avatar Farzad Senart avatar  avatar Wojciech Zalewski avatar David Chen avatar Adam Stankiewicz avatar Nicolas Froidure avatar ryjiang avatar Stephane P. Pericat avatar Arian Stolwijk avatar Olmo Maldonado avatar Chee Aun avatar

Watchers

Valerio Proietti avatar  avatar James Cloos avatar Daniel Faure avatar

mootools-node's Issues

Polluting global scope

Right now this module is polluting global scope:

// submodule.js
require('mootools')

// main.js
require('./submodule.js');
var class = new Class; // works!

I mean it's no problem when used deliberately but if there's some way to package it that MooTools is not visible from main.js, it'll be perfect.

TypeError: #<XHR> is not a function

return method.apply(item, slice.call(arguments, 1));
^
When trying to update to socket.io ver 1, where previous version 0.9.16 don't have this issue..

Mootools server line 218

I know it could be death but let you know anyways in case you want to keep it working..

because its really nice oop server side.

(Question) What is the license for this package?

What is the license for this package?
It is written MIT-style, but there is no License text. How about adding a LICENSE file with license text?
And how about adding license to package.json?
ex- "license": "MIT-style",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.