• Stars
    star
    1,311
  • Rank 35,893 (Top 0.8 %)
  • Language
    JavaScript
  • License
    Other
  • Created about 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Penis.JS

Comparing variables has never been that easy and clear like using penis.js. You can use it in your websites or in your node application.

This library also has ReactJS bindings with the CondomJS wrapper component.

Usage

Traditional comparing:

var a = 'foo';
var b = 'bar';
if(a === b) alert('true')

penis.js comparing:

penis.setBalls('foo');
penis.setHead('bar');
if(B===D) alert('true');

Soft or hard penis comparing:

penis.setBalls('0');
penis.setHead(0);

var softPenisCompareResult = B==D; // true
var hardPenisCompareResult = B===D; // false

// or...
var continent = B===D ? 'Africa' : 'Asia';

Penis is compatible with AMD, commonjs, or can be just included as a script tag in a browser.

You can install penis as a node module with:

npm install edankwan/penis.js

You can then use it by requiring it:

var penis = require('penis');

Bower is also supported:

bower install penis.js

If your browser supports Object.defineProperty, you can use the balls and head properties to set these properties instead:

penis.balls = '1';
penis.head = 1;

B==D; // true
B===D; // false

When you've finished with your current penis, you can reset to get your global B and D back:

D = 'dick';

penis.setHead('Crabapple');

penis.reset();

D == 'dick' // true;

Caution

penis.js uses the global variables "B" and "D" such that you can use the awesome command "B==D" to compare 2 variables everywhere.

Testing

run npm test or testling to run the test suite.

License

penis.js is currently under Giant Penis License (GPL) which is a deformed MIT License including penis text art.

More Repositories

1

The-Spirit

WebGL Experiment
JavaScript
1,091
star
2

PerspectiveTransform.js

A Javascript Class to do the CSS 3D transformation by 4 destination points
JavaScript
286
star
3

hyper-mix

JavaScript
228
star
4

Jesus.js

Not sure what will it do yet. But it just sounds like a really powerful library no matter what it really does.
JavaScript
212
star
5

Constraint

JavaScript
119
star
6

vagina.js

JavaScript
108
star
7

Icicle-Bubbles

JavaScript
89
star
8

touch-leap-motion

JavaScript
83
star
9

SMASHING-Mega-Scene

JavaScript
64
star
10

quick-loader

quick-loader is an asset loader that loads everything
JavaScript
52
star
11

pixi-custom

A flexible(sort of) way to expose the possibility of using vertex shader in PIXI 3.0
JavaScript
36
star
12

zen-painting

JavaScript
15
star
13

Everyday-Experiment

14
star
14

min-signal

A mini version of signal in Javascript. It supports priority and additional prefixed/suffixed arguments.
JavaScript
14
star
15

EKTweener.js

Just a simple Tweener for JS
JavaScript
11
star
16

Exec-Parser-Sublime-Plugin

A plugin that allow users to add custom python parser commands for paste command and duplicate line command.
Python
7
star
17

snowy-snow-globe

**Snowy Snow Globe** is part of the Christmas Experiments 2015.
JavaScript
5
star
18

localize-your-website-using-google-sheets

JavaScript
5
star
19

advanced_frontend_development_exercises

exercises for my meetup talk about advanced frontend development
JavaScript
4
star
20

asshole.io

Source codes of asshole.io
4
star
21

christmas-card-to-everyone

A Christmas Experiment for 2014
JavaScript
4
star
22

Bum-Bum-Mapping

An old experiment I did using bump mapping shit
3
star
23

ring-loader.codepen.io

A silly way not using any new HTML5/CSS3 to do the old school ring style preloader.
JavaScript
3
star
24

three.js-amdifier

A tool to turn threejs sources into amd modules
JavaScript
2
star
25

tiny-panorma

1
star