Giter Site home page Giter Site logo

cleod9 / node-oopsjs Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 160 KB

A Node.js port of OOPS.js. Allows for very simple Object-Oriented Programming structured code in JavaScript.

Home Page: http://www.greg-mcleod.com

License: MIT License

JavaScript 100.00%

node-oopsjs's Introduction

OOPS.js (For Node.js)#


(For the original library and complete usage instructions, please see: https://github.com/Cleod9/oopsjs)

This library is a Node.js port of OOPS.js.

Installation

npm install oopsjs

And that's it! You can then start using it by simply requiring the oopsjs package:

var OOPS = require('oopsjs');

You will then have access to the library through the variable OOPS. See below for a quick example:

//Define a class
var AwesomeClass = OOPS.extend({
	_constructor_: function() {
		console.log('An awesome class has been created!');
	}
});

//Create an instance of your class
var myAwesomeClass = new AwesomeClass();

For full instructions, see the original OOPS.js.

This library also works great with ImportJS for Node!

Version History

1.1.2

  • Readme update (Node.js)

1.1.1

  • Minor syntax change

1.1.0

  • Greatly simplified the setup structure by using standard JS practices
  • Replaced parent property with super

(99% backwards compatible with 1.0.0)

1.0.0

  • Initial release

Copyrighted © 2013 by Greg McLeod

GitHub: https://github.com/cleod9

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.