Proto is an extensible program-code-template for creating objects
What you need to build your own Proto
In order to build Proto, you need to have the latest node/npm and git 1.7 or later. Earlier versions might work, but are not supported.
For Windows, you have to download and install git and node.
OS X users should install git.
Linux/BSD users should use their appropriate package managers to install git and node, or build from source if you swing that way. Easy-peasy.
How to build your own Proto
Clone a copy of the main Proto git repo by running:
git clone git://github.com/adriancmiranda/Proto.git
Enter the Proto directory and run the install script and the build script:
cd Proto && npm i && npm run build
The built version of Proto will be put in the dist/
subdirectory, along with the minified copy and associated map file.
Get Started
Installation
Links to CDN
- Proto.iife.js (18.7 KB)
- Proto.iife.min.js (5.89 KB)
- Proto.iife.min.js.map (108 Bytes)
- Proto.iife.min.js.gz (2.31 KB)
Use this URL for dev/testing
Use this URL in production
via JSPM
jspm install adriancmiranda/Proto
via Bower
bower install adriancmiranda/Proto
via NPM
npm i -D Proto
via Component
component install adriancmiranda/Proto
Node/Browserify/Webpack
var Proto = ;
Usage
var Ninja = Proto; var Human = Proto; var ChuckNorris = Human; var Goku = ChuckNorris; var chuck = ;chuck;console; // trueconsole; // falseconsole; // trueconsole; // trueconsole;console; var goku = ;goku;console;
See this usage here. You'll need open the browser console to see him in action.