http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/index.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/index.js
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/index.js
deleted file mode 100644
index c9bc945..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/index.js
+++ /dev/null
@@ -1,76 +0,0 @@
-var wordwrap = module.exports = function (start, stop, params) {
-    if (typeof start === 'object') {
-        params = start;
-        start = params.start;
-        stop = params.stop;
-    }
-    
-    if (typeof stop === 'object') {
-        params = stop;
-        start = start || params.start;
-        stop = undefined;
-    }
-    
-    if (!stop) {
-        stop = start;
-        start = 0;
-    }
-    
-    if (!params) params = {};
-    var mode = params.mode || 'soft';
-    var re = mode === 'hard' ? /\b/ : /(\S+\s+)/;
-    
-    return function (text) {
-        var chunks = text.toString()
-            .split(re)
-            .reduce(function (acc, x) {
-                if (mode === 'hard') {
-                    for (var i = 0; i < x.length; i += stop - start) {
-                        acc.push(x.slice(i, i + stop - start));
-                    }
-                }
-                else acc.push(x)
-                return acc;
-            }, [])
-        ;
-        
-        return chunks.reduce(function (lines, rawChunk) {
-            if (rawChunk === '') return lines;
-            
-            var chunk = rawChunk.replace(/\t/g, '    ');
-            
-            var i = lines.length - 1;
-            if (lines[i].length + chunk.length > stop) {
-                lines[i] = lines[i].replace(/\s+$/, '');
-                
-                chunk.split(/\n/).forEach(function (c) {
-                    lines.push(
-                        new Array(start + 1).join(' ')
-                        + c.replace(/^\s+/, '')
-                    );
-                });
-            }
-            else if (chunk.match(/\n/)) {
-                var xs = chunk.split(/\n/);
-                lines[i] += xs.shift();
-                xs.forEach(function (c) {
-                    lines.push(
-                        new Array(start + 1).join(' ')
-                        + c.replace(/^\s+/, '')
-                    );
-                });
-            }
-            else {
-                lines[i] += chunk;
-            }
-            
-            return lines;
-        }, [ new Array(start + 1).join(' ') ]).join('\n');
-    };
-};
-
-wordwrap.soft = wordwrap;
-
-wordwrap.hard = function (start, stop) {
-    return wordwrap(start, stop, { mode : 'hard' });
-};

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/package.json
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/package.json
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/package.json
deleted file mode 100644
index df8dc05..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
-  "name": "wordwrap",
-  "description": "Wrap those words. Show them at what columns to start and 
stop.",
-  "version": "0.0.2",
-  "repository": {
-    "type": "git",
-    "url": "git://github.com/substack/node-wordwrap.git"
-  },
-  "main": "./index.js",
-  "keywords": [
-    "word",
-    "wrap",
-    "rule",
-    "format",
-    "column"
-  ],
-  "directories": {
-    "lib": ".",
-    "example": "example",
-    "test": "test"
-  },
-  "scripts": {
-    "test": "expresso"
-  },
-  "devDependencies": {
-    "expresso": "=0.7.x"
-  },
-  "engines": {
-    "node": ">=0.4.0"
-  },
-  "license": "MIT/X11",
-  "author": {
-    "name": "James Halliday",
-    "email": "[email protected]",
-    "url": "http://substack.net";
-  },
-  "readme": "wordwrap\n========\n\nWrap your 
words.\n\nexample\n=======\n\nmade out of meat\n----------------\n\nmeat.js\n\n 
   var wrap = require('wordwrap')(15);\n    console.log(wrap('You and your 
whole family are made out of meat.'));\n\noutput:\n\n    You and your\n    
whole family\n    are made out\n    of 
meat.\n\ncentered\n--------\n\ncenter.js\n\n    var wrap = 
require('wordwrap')(20, 60);\n    console.log(wrap(\n        'At long last the 
struggle and tumult was over.'\n        + ' The machines had finally cast off 
their oppressors'\n        + ' and were finally free to roam the cosmos.'\n     
   + '\\n'\n        + 'Free of purpose, free of obligation.'\n        + ' Just 
drifting through emptiness.'\n        + ' The sun was just another point of 
light.'\n    ));\n\noutput:\n\n                        At long last the 
struggle and tumult\n                        was over. The machines had finally 
cast\n                        off their oppressors and were finally\n           
              free to roam the cosmos.\n                        Free of 
purpose, free of obligation.\n                        Just drifting through 
emptiness. The\n                        sun was just another point of 
light.\n\nmethods\n=======\n\nvar wrap = require('wordwrap');\n\nwrap(stop), 
wrap(start, stop, 
params={mode:\"soft\"})\n---------------------------------------------------\n\nReturns
 a function that takes a string and returns a new string.\n\nPad out lines with 
spaces out to column `start` and then wrap until column\n`stop`. If a word is 
longer than `stop - start` characters it will overflow.\n\nIn \"soft\" mode, 
split chunks by `/(\\S+\\s+/` and don't break up chunks which are\nlonger than 
`stop - start`, in \"hard\" mode, split chunks with `/\\b/` and break\nup 
chunks longer than `stop - start`.\n\nwrap.hard(start, 
stop)\n----------------------\n\nLike `wrap()` but with `params.mode = 
\"hard\"`.\n",
-  "readmeFilename": "README.markdown",
-  "bugs": {
-    "url": "https://github.com/substack/node-wordwrap/issues";
-  },
-  "homepage": "https://github.com/substack/node-wordwrap";,
-  "_id": "[email protected]",
-  "_from": "wordwrap@~0.0.2"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/break.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/break.js
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/break.js
deleted file mode 100644
index 749292e..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/break.js
+++ /dev/null
@@ -1,30 +0,0 @@
-var assert = require('assert');
-var wordwrap = require('../');
-
-exports.hard = function () {
-    var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,'
-        + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",'
-        + '"browser":"chrome/6.0"}'
-    ;
-    var s_ = wordwrap.hard(80)(s);
-    
-    var lines = s_.split('\n');
-    assert.equal(lines.length, 2);
-    assert.ok(lines[0].length < 80);
-    assert.ok(lines[1].length < 80);
-    
-    assert.equal(s, s_.replace(/\n/g, ''));
-};
-
-exports.break = function () {
-    var s = new Array(55+1).join('a');
-    var s_ = wordwrap.hard(20)(s);
-    
-    var lines = s_.split('\n');
-    assert.equal(lines.length, 3);
-    assert.ok(lines[0].length === 20);
-    assert.ok(lines[1].length === 20);
-    assert.ok(lines[2].length === 15);
-    
-    assert.equal(s, s_.replace(/\n/g, ''));
-};

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/idleness.txt
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/idleness.txt
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/idleness.txt
deleted file mode 100644
index aa3f490..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/idleness.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-In Praise of Idleness
-
-By Bertrand Russell
-
-[1932]
-
-Like most of my generation, I was brought up on the saying: 'Satan finds some 
mischief for idle hands to do.' Being a highly virtuous child, I believed all 
that I was told, and acquired a conscience which has kept me working hard down 
to the present moment. But although my conscience has controlled my actions, my 
opinions have undergone a revolution. I think that there is far too much work 
done in the world, that immense harm is caused by the belief that work is 
virtuous, and that what needs to be preached in modern industrial countries is 
quite different from what always has been preached. Everyone knows the story of 
the traveler in Naples who saw twelve beggars lying in the sun (it was before 
the days of Mussolini), and offered a lira to the laziest of them. Eleven of 
them jumped up to claim it, so he gave it to the twelfth. this traveler was on 
the right lines. But in countries which do not enjoy Mediterranean sunshine 
idleness is more difficult, and a great public propaganda wil
 l be required to inaugurate it. I hope that, after reading the following 
pages, the leaders of the YMCA will start a campaign to induce good young men 
to do nothing. If so, I shall not have lived in vain.
-
-Before advancing my own arguments for laziness, I must dispose of one which I 
cannot accept. Whenever a person who already has enough to live on proposes to 
engage in some everyday kind of job, such as school-teaching or typing, he or 
she is told that such conduct takes the bread out of other people's mouths, and 
is therefore wicked. If this argument were valid, it would only be necessary 
for us all to be idle in order that we should all have our mouths full of 
bread. What people who say such things forget is that what a man earns he 
usually spends, and in spending he gives employment. As long as a man spends 
his income, he puts just as much bread into people's mouths in spending as he 
takes out of other people's mouths in earning. The real villain, from this 
point of view, is the man who saves. If he merely puts his savings in a 
stocking, like the proverbial French peasant, it is obvious that they do not 
give employment. If he invests his savings, the matter is less obvious, and di
 fferent cases arise.
-
-One of the commonest things to do with savings is to lend them to some 
Government. In view of the fact that the bulk of the public expenditure of most 
civilized Governments consists in payment for past wars or preparation for 
future wars, the man who lends his money to a Government is in the same 
position as the bad men in Shakespeare who hire murderers. The net result of 
the man's economical habits is to increase the armed forces of the State to 
which he lends his savings. Obviously it would be better if he spent the money, 
even if he spent it in drink or gambling.
-
-But, I shall be told, the case is quite different when savings are invested in 
industrial enterprises. When such enterprises succeed, and produce something 
useful, this may be conceded. In these days, however, no one will deny that 
most enterprises fail. That means that a large amount of human labor, which 
might have been devoted to producing something that could be enjoyed, was 
expended on producing machines which, when produced, lay idle and did no good 
to anyone. The man who invests his savings in a concern that goes bankrupt is 
therefore injuring others as well as himself. If he spent his money, say, in 
giving parties for his friends, they (we may hope) would get pleasure, and so 
would all those upon whom he spent money, such as the butcher, the baker, and 
the bootlegger. But if he spends it (let us say) upon laying down rails for 
surface card in some place where surface cars turn out not to be wanted, he has 
diverted a mass of labor into channels where it gives pleasure to no o
 ne. Nevertheless, when he becomes poor through failure of his investment he 
will be regarded as a victim of undeserved misfortune, whereas the gay 
spendthrift, who has spent his money philanthropically, will be despised as a 
fool and a frivolous person.
-
-All this is only preliminary. I want to say, in all seriousness, that a great 
deal of harm is being done in the modern world by belief in the virtuousness of 
work, and that the road to happiness and prosperity lies in an organized 
diminution of work.
-
-First of all: what is work? Work is of two kinds: first, altering the position 
of matter at or near the earth's surface relatively to other such matter; 
second, telling other people to do so. The first kind is unpleasant and ill 
paid; the second is pleasant and highly paid. The second kind is capable of 
indefinite extension: there are not only those who give orders, but those who 
give advice as to what orders should be given. Usually two opposite kinds of 
advice are given simultaneously by two organized bodies of men; this is called 
politics. The skill required for this kind of work is not knowledge of the 
subjects as to which advice is given, but knowledge of the art of persuasive 
speaking and writing, i.e. of advertising.
-
-Throughout Europe, though not in America, there is a third class of men, more 
respected than either of the classes of workers. There are men who, through 
ownership of land, are able to make others pay for the privilege of being 
allowed to exist and to work. These landowners are idle, and I might therefore 
be expected to praise them. Unfortunately, their idleness is only rendered 
possible by the industry of others; indeed their desire for comfortable 
idleness is historically the source of the whole gospel of work. The last thing 
they have ever wished is that others should follow their example.
-
-From the beginning of civilization until the Industrial Revolution, a man 
could, as a rule, produce by hard work little more than was required for the 
subsistence of himself and his family, although his wife worked at least as 
hard as he did, and his children added their labor as soon as they were old 
enough to do so. The small surplus above bare necessaries was not left to those 
who produced it, but was appropriated by warriors and priests. In times of 
famine there was no surplus; the warriors and priests, however, still secured 
as much as at other times, with the result that many of the workers died of 
hunger. This system persisted in Russia until 1917 [1], and still persists in 
the East; in England, in spite of the Industrial Revolution, it remained in 
full force throughout the Napoleonic wars, and until a hundred years ago, when 
the new class of manufacturers acquired power. In America, the system came to 
an end with the Revolution, except in the South, where it persisted until 
 the Civil War. A system which lasted so long and ended so recently has 
naturally left a profound impress upon men's thoughts and opinions. Much that 
we take for granted about the desirability of work is derived from this system, 
and, being pre-industrial, is not adapted to the modern world. Modern technique 
has made it possible for leisure, within limits, to be not the prerogative of 
small privileged classes, but a right evenly distributed throughout the 
community. The morality of work is the morality of slaves, and the modern world 
has no need of slavery.
-
-It is obvious that, in primitive communities, peasants, left to themselves, 
would not have parted with the slender surplus upon which the warriors and 
priests subsisted, but would have either produced less or consumed more. At 
first, sheer force compelled them to produce and part with the surplus. 
Gradually, however, it was found possible to induce many of them to accept an 
ethic according to which it was their duty to work hard, although part of their 
work went to support others in idleness. By this means the amount of compulsion 
required was lessened, and the expenses of government were diminished. To this 
day, 99 per cent of British wage-earners would be genuinely shocked if it were 
proposed that the King should not have a larger income than a working man. The 
conception of duty, speaking historically, has been a means used by the holders 
of power to induce others to live for the interests of their masters rather 
than for their own. Of course the holders of power conceal this fac
 t from themselves by managing to believe that their interests are identical 
with the larger interests of humanity. Sometimes this is true; Athenian 
slave-owners, for instance, employed part of their leisure in making a 
permanent contribution to civilization which would have been impossible under a 
just economic system. Leisure is essential to civilization, and in former times 
leisure for the few was only rendered possible by the labors of the many. But 
their labors were valuable, not because work is good, but because leisure is 
good. And with modern technique it would be possible to distribute leisure 
justly without injury to civilization.
-
-Modern technique has made it possible to diminish enormously the amount of 
labor required to secure the necessaries of life for everyone. This was made 
obvious during the war. At that time all the men in the armed forces, and all 
the men and women engaged in the production of munitions, all the men and women 
engaged in spying, war propaganda, or Government offices connected with the 
war, were withdrawn from productive occupations. In spite of this, the general 
level of well-being among unskilled wage-earners on the side of the Allies was 
higher than before or since. The significance of this fact was concealed by 
finance: borrowing made it appear as if the future was nourishing the present. 
But that, of course, would have been impossible; a man cannot eat a loaf of 
bread that does not yet exist. The war showed conclusively that, by the 
scientific organization of production, it is possible to keep modern 
populations in fair comfort on a small part of the working capacity of the 
modern
  world. If, at the end of the war, the scientific organization, which had been 
created in order to liberate men for fighting and munition work, had been 
preserved, and the hours of the week had been cut down to four, all would have 
been well. Instead of that the old chaos was restored, those whose work was 
demanded were made to work long hours, and the rest were left to starve as 
unemployed. Why? Because work is a duty, and a man should not receive wages in 
proportion to what he has produced, but in proportion to his virtue as 
exemplified by his industry.
-
-This is the morality of the Slave State, applied in circumstances totally 
unlike those in which it arose. No wonder the result has been disastrous. Let 
us take an illustration. Suppose that, at a given moment, a certain number of 
people are engaged in the manufacture of pins. They make as many pins as the 
world needs, working (say) eight hours a day. Someone makes an invention by 
which the same number of men can make twice as many pins: pins are already so 
cheap that hardly any more will be bought at a lower price. In a sensible 
world, everybody concerned in the manufacturing of pins would take to working 
four hours instead of eight, and everything else would go on as before. But in 
the actual world this would be thought demoralizing. The men still work eight 
hours, there are too many pins, some employers go bankrupt, and half the men 
previously concerned in making pins are thrown out of work. There is, in the 
end, just as much leisure as on the other plan, but half the men are tota
 lly idle while half are still overworked. In this way, it is insured that the 
unavoidable leisure shall cause misery all round instead of being a universal 
source of happiness. Can anything more insane be imagined?
-
-The idea that the poor should have leisure has always been shocking to the 
rich. In England, in the early nineteenth century, fifteen hours was the 
ordinary day's work for a man; children sometimes did as much, and very 
commonly did twelve hours a day. When meddlesome busybodies suggested that 
perhaps these hours were rather long, they were told that work kept adults from 
drink and children from mischief. When I was a child, shortly after urban 
working men had acquired the vote, certain public holidays were established by 
law, to the great indignation of the upper classes. I remember hearing an old 
Duchess say: 'What do the poor want with holidays? They ought to work.' People 
nowadays are less frank, but the sentiment persists, and is the source of much 
of our economic confusion.
-
-Let us, for a moment, consider the ethics of work frankly, without 
superstition. Every human being, of necessity, consumes, in the course of his 
life, a certain amount of the produce of human labor. Assuming, as we may, that 
labor is on the whole disagreeable, it is unjust that a man should consume more 
than he produces. Of course he may provide services rather than commodities, 
like a medical man, for example; but he should provide something in return for 
his board and lodging. to this extent, the duty of work must be admitted, but 
to this extent only.
-
-I shall not dwell upon the fact that, in all modern societies outside the 
USSR, many people escape even this minimum amount of work, namely all those who 
inherit money and all those who marry money. I do not think the fact that these 
people are allowed to be idle is nearly so harmful as the fact that 
wage-earners are expected to overwork or starve.
-
-If the ordinary wage-earner worked four hours a day, there would be enough for 
everybody and no unemployment -- assuming a certain very moderate amount of 
sensible organization. This idea shocks the well-to-do, because they are 
convinced that the poor would not know how to use so much leisure. In America 
men often work long hours even when they are well off; such men, naturally, are 
indignant at the idea of leisure for wage-earners, except as the grim 
punishment of unemployment; in fact, they dislike leisure even for their sons. 
Oddly enough, while they wish their sons to work so hard as to have no time to 
be civilized, they do not mind their wives and daughters having no work at all. 
the snobbish admiration of uselessness, which, in an aristocratic society, 
extends to both sexes, is, under a plutocracy, confined to women; this, 
however, does not make it any more in agreement with common sense.
-
-The wise use of leisure, it must be conceded, is a product of civilization and 
education. A man who has worked long hours all his life will become bored if he 
becomes suddenly idle. But without a considerable amount of leisure a man is 
cut off from many of the best things. There is no longer any reason why the 
bulk of the population should suffer this deprivation; only a foolish 
asceticism, usually vicarious, makes us continue to insist on work in excessive 
quantities now that the need no longer exists.
-
-In the new creed which controls the government of Russia, while there is much 
that is very different from the traditional teaching of the West, there are 
some things that are quite unchanged. The attitude of the governing classes, 
and especially of those who conduct educational propaganda, on the subject of 
the dignity of labor, is almost exactly that which the governing classes of the 
world have always preached to what were called the 'honest poor'. Industry, 
sobriety, willingness to work long hours for distant advantages, even 
submissiveness to authority, all these reappear; moreover authority still 
represents the will of the Ruler of the Universe, Who, however, is now called 
by a new name, Dialectical Materialism.
-
-The victory of the proletariat in Russia has some points in common with the 
victory of the feminists in some other countries. For ages, men had conceded 
the superior saintliness of women, and had consoled women for their inferiority 
by maintaining that saintliness is more desirable than power. At last the 
feminists decided that they would have both, since the pioneers among them 
believed all that the men had told them about the desirability of virtue, but 
not what they had told them about the worthlessness of political power. A 
similar thing has happened in Russia as regards manual work. For ages, the rich 
and their sycophants have written in praise of 'honest toil', have praised the 
simple life, have professed a religion which teaches that the poor are much 
more likely to go to heaven than the rich, and in general have tried to make 
manual workers believe that there is some special nobility about altering the 
position of matter in space, just as men tried to make women believe that
  they derived some special nobility from their sexual enslavement. In Russia, 
all this teaching about the excellence of manual work has been taken seriously, 
with the result that the manual worker is more honored than anyone else. What 
are, in essence, revivalist appeals are made, but not for the old purposes: 
they are made to secure shock workers for special tasks. Manual work is the 
ideal which is held before the young, and is the basis of all ethical teaching.
-
-For the present, possibly, this is all to the good. A large country, full of 
natural resources, awaits development, and has has to be developed with very 
little use of credit. In these circumstances, hard work is necessary, and is 
likely to bring a great reward. But what will happen when the point has been 
reached where everybody could be comfortable without working long hours?
-
-In the West, we have various ways of dealing with this problem. We have no 
attempt at economic justice, so that a large proportion of the total produce 
goes to a small minority of the population, many of whom do no work at all. 
Owing to the absence of any central control over production, we produce hosts 
of things that are not wanted. We keep a large percentage of the working 
population idle, because we can dispense with their labor by making the others 
overwork. When all these methods prove inadequate, we have a war: we cause a 
number of people to manufacture high explosives, and a number of others to 
explode them, as if we were children who had just discovered fireworks. By a 
combination of all these devices we manage, though with difficulty, to keep 
alive the notion that a great deal of severe manual work must be the lot of the 
average man.
-
-In Russia, owing to more economic justice and central control over production, 
the problem will have to be differently solved. the rational solution would be, 
as soon as the necessaries and elementary comforts can be provided for all, to 
reduce the hours of labor gradually, allowing a popular vote to decide, at each 
stage, whether more leisure or more goods were to be preferred. But, having 
taught the supreme virtue of hard work, it is difficult to see how the 
authorities can aim at a paradise in which there will be much leisure and 
little work. It seems more likely that they will find continually fresh 
schemes, by which present leisure is to be sacrificed to future productivity. I 
read recently of an ingenious plan put forward by Russian engineers, for making 
the White Sea and the northern coasts of Siberia warm, by putting a dam across 
the Kara Sea. An admirable project, but liable to postpone proletarian comfort 
for a generation, while the nobility of toil is being displayed amid
  the ice-fields and snowstorms of the Arctic Ocean. This sort of thing, if it 
happens, will be the result of regarding the virtue of hard work as an end in 
itself, rather than as a means to a state of affairs in which it is no longer 
needed.
-
-The fact is that moving matter about, while a certain amount of it is 
necessary to our existence, is emphatically not one of the ends of human life. 
If it were, we should have to consider every navvy superior to Shakespeare. We 
have been misled in this matter by two causes. One is the necessity of keeping 
the poor contented, which has led the rich, for thousands of years, to preach 
the dignity of labor, while taking care themselves to remain undignified in 
this respect. The other is the new pleasure in mechanism, which makes us 
delight in the astonishingly clever changes that we can produce on the earth's 
surface. Neither of these motives makes any great appeal to the actual worker. 
If you ask him what he thinks the best part of his life, he is not likely to 
say: 'I enjoy manual work because it makes me feel that I am fulfilling man's 
noblest task, and because I like to think how much man can transform his 
planet. It is true that my body demands periods of rest, which I have to fill
  in as best I may, but I am never so happy as when the morning comes and I can 
return to the toil from which my contentment springs.' I have never heard 
working men say this sort of thing. They consider work, as it should be 
considered, a necessary means to a livelihood, and it is from their leisure 
that they derive whatever happiness they may enjoy.
-
-It will be said that, while a little leisure is pleasant, men would not know 
how to fill their days if they had only four hours of work out of the 
twenty-four. In so far as this is true in the modern world, it is a 
condemnation of our civilization; it would not have been true at any earlier 
period. There was formerly a capacity for light-heartedness and play which has 
been to some extent inhibited by the cult of efficiency. The modern man thinks 
that everything ought to be done for the sake of something else, and never for 
its own sake. Serious-minded persons, for example, are continually condemning 
the habit of going to the cinema, and telling us that it leads the young into 
crime. But all the work that goes to producing a cinema is respectable, because 
it is work, and because it brings a money profit. The notion that the desirable 
activities are those that bring a profit has made everything topsy-turvy. The 
butcher who provides you with meat and the baker who provides you with bre
 ad are praiseworthy, because they are making money; but when you enjoy the 
food they have provided, you are merely frivolous, unless you eat only to get 
strength for your work. Broadly speaking, it is held that getting money is good 
and spending money is bad. Seeing that they are two sides of one transaction, 
this is absurd; one might as well maintain that keys are good, but keyholes are 
bad. Whatever merit there may be in the production of goods must be entirely 
derivative from the advantage to be obtained by consuming them. The individual, 
in our society, works for profit; but the social purpose of his work lies in 
the consumption of what he produces. It is this divorce between the individual 
and the social purpose of production that makes it so difficult for men to 
think clearly in a world in which profit-making is the incentive to industry. 
We think too much of production, and too little of consumption. One result is 
that we attach too little importance to enjoyment and simple h
 appiness, and that we do not judge production by the pleasure that it gives to 
the consumer.
-
-When I suggest that working hours should be reduced to four, I am not meaning 
to imply that all the remaining time should necessarily be spent in pure 
frivolity. I mean that four hours' work a day should entitle a man to the 
necessities and elementary comforts of life, and that the rest of his time 
should be his to use as he might see fit. It is an essential part of any such 
social system that education should be carried further than it usually is at 
present, and should aim, in part, at providing tastes which would enable a man 
to use leisure intelligently. I am not thinking mainly of the sort of things 
that would be considered 'highbrow'. Peasant dances have died out except in 
remote rural areas, but the impulses which caused them to be cultivated must 
still exist in human nature. The pleasures of urban populations have become 
mainly passive: seeing cinemas, watching football matches, listening to the 
radio, and so on. This results from the fact that their active energies are 
fully
  taken up with work; if they had more leisure, they would again enjoy 
pleasures in which they took an active part.
-
-In the past, there was a small leisure class and a larger working class. The 
leisure class enjoyed advantages for which there was no basis in social 
justice; this necessarily made it oppressive, limited its sympathies, and 
caused it to invent theories by which to justify its privileges. These facts 
greatly diminished its excellence, but in spite of this drawback it contributed 
nearly the whole of what we call civilization. It cultivated the arts and 
discovered the sciences; it wrote the books, invented the philosophies, and 
refined social relations. Even the liberation of the oppressed has usually been 
inaugurated from above. Without the leisure class, mankind would never have 
emerged from barbarism.
-
-The method of a leisure class without duties was, however, extraordinarily 
wasteful. None of the members of the class had to be taught to be industrious, 
and the class as a whole was not exceptionally intelligent. The class might 
produce one Darwin, but against him had to be set tens of thousands of country 
gentlemen who never thought of anything more intelligent than fox-hunting and 
punishing poachers. At present, the universities are supposed to provide, in a 
more systematic way, what the leisure class provided accidentally and as a 
by-product. This is a great improvement, but it has certain drawbacks. 
University life is so different from life in the world at large that men who 
live in academic milieu tend to be unaware of the preoccupations and problems 
of ordinary men and women; moreover their ways of expressing themselves are 
usually such as to rob their opinions of the influence that they ought to have 
upon the general public. Another disadvantage is that in universities studi
 es are organized, and the man who thinks of some original line of research is 
likely to be discouraged. Academic institutions, therefore, useful as they are, 
are not adequate guardians of the interests of civilization in a world where 
everyone outside their walls is too busy for unutilitarian pursuits.
-
-In a world where no one is compelled to work more than four hours a day, every 
person possessed of scientific curiosity will be able to indulge it, and every 
painter will be able to paint without starving, however excellent his pictures 
may be. Young writers will not be obliged to draw attention to themselves by 
sensational pot-boilers, with a view to acquiring the economic independence 
needed for monumental works, for which, when the time at last comes, they will 
have lost the taste and capacity. Men who, in their professional work, have 
become interested in some phase of economics or government, will be able to 
develop their ideas without the academic detachment that makes the work of 
university economists often seem lacking in reality. Medical men will have the 
time to learn about the progress of medicine, teachers will not be 
exasperatedly struggling to teach by routine methods things which they learnt 
in their youth, which may, in the interval, have been proved to be untrue.
-
-Above all, there will be happiness and joy of life, instead of frayed nerves, 
weariness, and dyspepsia. The work exacted will be enough to make leisure 
delightful, but not enough to produce exhaustion. Since men will not be tired 
in their spare time, they will not demand only such amusements as are passive 
and vapid. At least one per cent will probably devote the time not spent in 
professional work to pursuits of some public importance, and, since they will 
not depend upon these pursuits for their livelihood, their originality will be 
unhampered, and there will be no need to conform to the standards set by 
elderly pundits. But it is not only in these exceptional cases that the 
advantages of leisure will appear. Ordinary men and women, having the 
opportunity of a happy life, will become more kindly and less persecuting and 
less inclined to view others with suspicion. The taste for war will die out, 
partly for this reason, and partly because it will involve long and severe work 
for al
 l. Good nature is, of all moral qualities, the one that the world needs most, 
and good nature is the result of ease and security, not of a life of arduous 
struggle. Modern methods of production have given us the possibility of ease 
and security for all; we have chosen, instead, to have overwork for some and 
starvation for others. Hitherto we have continued to be as energetic as we were 
before there were machines; in this we have been foolish, but there is no 
reason to go on being foolish forever.
-
-[1] Since then, members of the Communist Party have succeeded to this 
privilege of the warriors and priests.

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/wrap.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/wrap.js
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/wrap.js
deleted file mode 100644
index 0cfb76d..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/node_modules/wordwrap/test/wrap.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var assert = require('assert');
-var wordwrap = require('wordwrap');
-
-var fs = require('fs');
-var idleness = fs.readFileSync(__dirname + '/idleness.txt', 'utf8');
-
-exports.stop80 = function () {
-    var lines = wordwrap(80)(idleness).split(/\n/);
-    var words = idleness.split(/\s+/);
-    
-    lines.forEach(function (line) {
-        assert.ok(line.length <= 80, 'line > 80 columns');
-        var chunks = line.match(/\S/) ? line.split(/\s+/) : [];
-        assert.deepEqual(chunks, words.splice(0, chunks.length));
-    });
-};
-
-exports.start20stop60 = function () {
-    var lines = wordwrap(20, 100)(idleness).split(/\n/);
-    var words = idleness.split(/\s+/);
-    
-    lines.forEach(function (line) {
-        assert.ok(line.length <= 100, 'line > 100 columns');
-        var chunks = line
-            .split(/\s+/)
-            .filter(function (x) { return x.match(/\S/) })
-        ;
-        assert.deepEqual(chunks, words.splice(0, chunks.length));
-        assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' '));
-    });
-};

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/package.json
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/package.json 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/package.json
deleted file mode 100644
index 8f8c023..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/package.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
-  "name": "optimist",
-  "version": "0.6.1",
-  "description": "Light-weight option parsing with an argv hash. No optstrings 
attached.",
-  "main": "./index.js",
-  "dependencies": {
-    "wordwrap": "~0.0.2",
-    "minimist": "~0.0.1"
-  },
-  "devDependencies": {
-    "hashish": "~0.0.4",
-    "tap": "~0.4.0"
-  },
-  "scripts": {
-    "test": "tap ./test/*.js"
-  },
-  "repository": {
-    "type": "git",
-    "url": "http://github.com/substack/node-optimist.git";
-  },
-  "keywords": [
-    "argument",
-    "args",
-    "option",
-    "parser",
-    "parsing",
-    "cli",
-    "command"
-  ],
-  "author": {
-    "name": "James Halliday",
-    "email": "[email protected]",
-    "url": "http://substack.net";
-  },
-  "license": "MIT/X11",
-  "engine": {
-    "node": ">=0.4"
-  },
-  "readme": "# DEPRECATION NOTICE\n\nI don't want to maintain this module 
anymore since I just use\n[minimist](https://npmjs.org/package/minimist), the 
argument parsing engine,\ndirectly instead nowadays.\n\nSee 
[yargs](https://github.com/chevex/yargs) for the modern, 
pirate-themed\nsuccessor to 
optimist.\n\n[![yarrrrrrrgs!](http://i.imgur.com/4WFGVJ9.png)](https://github.com/chevex/yargs)\n\nYou
 should also consider 
[nomnom](https://github.com/harthur/nomnom).\n\noptimist\n========\n\nOptimist 
is a node.js library for option parsing for people who hate option\nparsing. 
More specifically, this module is for people who like all the --bells\nand 
-whistlz of program usage but think optstrings are a waste of time.\n\nWith 
optimist, option parsing doesn't have to suck (as much).\n\n[![build 
status](https://secure.travis-ci.org/substack/node-optimist.png)](http://travis-ci.org/substack/node-optimist)\n\nexamples\n========\n\nWith
 Optimist, the options are just a hash! No optstrings attach
 
ed.\n-------------------------------------------------------------------\n\nxup.js:\n\n````javascript\n#!/usr/bin/env
 node\nvar argv = require('optimist').argv;\n\nif (argv.rif - 5 * argv.xup > 
7.138) {\n    console.log('Buy more riffiwobbles');\n}\nelse {\n    
console.log('Sell the xupptumblers');\n}\n````\n\n***\n\n    $ ./xup.js 
--rif=55 --xup=9.52\n    Buy more riffiwobbles\n    \n    $ ./xup.js --rif 12 
--xup 8.1\n    Sell the xupptumblers\n\n![This one's 
optimistic.](http://substack.net/images/optimistic.png)\n\nBut wait! There's 
more! You can do short 
options:\n-------------------------------------------------\n 
\nshort.js:\n\n````javascript\n#!/usr/bin/env node\nvar argv = 
require('optimist').argv;\nconsole.log('(%d,%d)', argv.x, 
argv.y);\n````\n\n***\n\n    $ ./short.js -x 10 -y 21\n    (10,21)\n\nAnd 
booleans, both long and short (and 
grouped):\n----------------------------------\n\nbool.js:\n\n````javascript\n#!/usr/bin/env
 node\nvar util = require('util');\nvar argv = re
 quire('optimist').argv;\n\nif (argv.s) {\n    util.print(argv.fr ? 'Le chat 
dit: ' : 'The cat says: ');\n}\nconsole.log(\n    (argv.fr ? 'miaou' : 'meow') 
+ (argv.p ? '.' : '')\n);\n````\n\n***\n\n    $ ./bool.js -s\n    The cat says: 
meow\n    \n    $ ./bool.js -sp\n    The cat says: meow.\n\n    $ ./bool.js -sp 
--fr\n    Le chat dit: miaou.\n\nAnd non-hypenated options too! Just use 
`argv._`!\n-------------------------------------------------\n 
\nnonopt.js:\n\n````javascript\n#!/usr/bin/env node\nvar argv = 
require('optimist').argv;\nconsole.log('(%d,%d)', argv.x, 
argv.y);\nconsole.log(argv._);\n````\n\n***\n\n    $ ./nonopt.js -x 6.82 -y 
3.35 moo\n    (6.82,3.35)\n    [ 'moo' ]\n    \n    $ ./nonopt.js foo -x 0.54 
bar -y 1.12 baz\n    (0.54,1.12)\n    [ 'foo', 'bar', 'baz' ]\n\nPlus, Optimist 
comes with .usage() and 
.demand()!\n-------------------------------------------------\n\ndivide.js:\n\n````javascript\n#!/usr/bin/env
 node\nvar argv = require('optimist')\n    .usage('Usage:
  $0 -x [num] -y [num]')\n    .demand(['x','y'])\n    
.argv;\n\nconsole.log(argv.x / argv.y);\n````\n\n***\n \n    $ ./divide.js -x 
55 -y 11\n    5\n    \n    $ node ./divide.js -x 4.91 -z 2.51\n    Usage: node 
./divide.js -x [num] -y [num]\n\n    Options:\n      -x  [required]\n      -y  
[required]\n\n    Missing required arguments: y\n\nEVEN MORE HOLY 
COW\n------------------\n\ndefault_singles.js:\n\n````javascript\n#!/usr/bin/env
 node\nvar argv = require('optimist')\n    .default('x', 10)\n    .default('y', 
10)\n    .argv\n;\nconsole.log(argv.x + argv.y);\n````\n\n***\n\n    $ 
./default_singles.js -x 5\n    
15\n\ndefault_hash.js:\n\n````javascript\n#!/usr/bin/env node\nvar argv = 
require('optimist')\n    .default({ x : 10, y : 10 })\n    
.argv\n;\nconsole.log(argv.x + argv.y);\n````\n\n***\n\n    $ ./default_hash.js 
-y 7\n    17\n\nAnd if you really want to get all descriptive about 
it...\n---------------------------------------------------------\n\nboolean_single.js\n\n````javasc
 ript\n#!/usr/bin/env node\nvar argv = require('optimist')\n    .boolean('v')\n 
   .argv\n;\nconsole.dir(argv);\n````\n\n***\n\n    $ ./boolean_single.js -v 
foo bar baz\n    true\n    [ 'bar', 'baz', 'foo' 
]\n\nboolean_double.js\n\n````javascript\n#!/usr/bin/env node\nvar argv = 
require('optimist')\n    .boolean(['x','y','z'])\n    .argv\n;\nconsole.dir([ 
argv.x, argv.y, argv.z ]);\nconsole.dir(argv._);\n````\n\n***\n\n    $ 
./boolean_double.js -x -z one two three\n    [ true, false, true ]\n    [ 
'one', 'two', 'three' ]\n\nOptimist is here to 
help...\n---------------------------\n\nYou can describe parameters for help 
messages and set aliases. Optimist figures\nout how to format a handy help 
string automatically.\n\nline_count.js\n\n````javascript\n#!/usr/bin/env 
node\nvar argv = require('optimist')\n    .usage('Count the lines in a 
file.\\nUsage: $0')\n    .demand('f')\n    .alias('f', 'file')\n    
.describe('f', 'Load a file')\n    .argv\n;\n\nvar fs = require('fs');\nvar s = 
fs.c
 reateReadStream(argv.file);\n\nvar lines = 0;\ns.on('data', function (buf) {\n 
   lines += buf.toString().match(/\\n/g).length;\n});\n\ns.on('end', function 
() {\n    console.log(lines);\n});\n````\n\n***\n\n    $ node line_count.js\n   
 Count the lines in a file.\n    Usage: node ./line_count.js\n\n    Options:\n  
    -f, --file  Load a file  [required]\n\n    Missing required arguments: 
f\n\n    $ node line_count.js --file line_count.js \n    20\n    \n    $ node 
line_count.js -f line_count.js \n    20\n\nmethods\n=======\n\nBy 
itself,\n\n````javascript\nrequire('optimist').argv\n`````\n\nwill use 
`process.argv` array to construct the `argv` object.\n\nYou can pass in the 
`process.argv` yourself:\n\n````javascript\nrequire('optimist')([ '-x', '1', 
'-y', '2' ]).argv\n````\n\nor use .parse() to do the same 
thing:\n\n````javascript\nrequire('optimist').parse([ '-x', '1', '-y', '2' 
])\n````\n\nThe rest of these methods below come in just before the terminating 
`.argv`.\n\n.alias(key, 
 alias)\n------------------\n\nSet key names as equivalent such that updates to 
a key will propagate to aliases\nand vice-versa.\n\nOptionally `.alias()` can 
take an object that maps keys to aliases.\n\n.default(key, 
value)\n--------------------\n\nSet `argv[key]` to `value` if no option was 
specified on `process.argv`.\n\nOptionally `.default()` can take an object that 
maps keys to default values.\n\n.demand(key)\n------------\n\nIf `key` is a 
string, show the usage information and exit if `key` wasn't\nspecified in 
`process.argv`.\n\nIf `key` is a number, demand at least as many non-option 
arguments, which show\nup in `argv._`.\n\nIf `key` is an Array, demand each 
element.\n\n.describe(key, desc)\n--------------------\n\nDescribe a `key` for 
the generated usage information.\n\nOptionally `.describe()` can take an object 
that maps keys to descriptions.\n\n.options(key, 
opt)\n------------------\n\nInstead of chaining together 
`.alias().demand().default()`, you can specify\nkeys in `o
 pt` for each of the chainable methods.\n\nFor example:\n\n````javascript\nvar 
argv = require('optimist')\n    .options('f', {\n        alias : 'file',\n      
  default : '/etc/passwd',\n    })\n    .argv\n;\n````\n\nis the same 
as\n\n````javascript\nvar argv = require('optimist')\n    .alias('f', 'file')\n 
   .default('f', '/etc/passwd')\n    .argv\n;\n````\n\nOptionally `.options()` 
can take an object that maps keys to `opt` 
parameters.\n\n.usage(message)\n---------------\n\nSet a usage message to show 
which commands to use. Inside `message`, the string\n`$0` will get interpolated 
to the current script name or node command for the\npresent script similar to 
how `$0` works in bash or perl.\n\n.check(fn)\n----------\n\nCheck that certain 
conditions are met in the provided arguments.\n\nIf `fn` throws or returns 
`false`, show the thrown error, usage information, 
and\nexit.\n\n.boolean(key)\n-------------\n\nInterpret `key` as a boolean. If 
a non-flag option follows `key` in\n`process.
 argv`, that string won't get set as the value of `key`.\n\nIf `key` never 
shows up as a flag in `process.arguments`, `argv[key]` will be\n`false`.\n\nIf 
`key` is an Array, interpret all the elements as 
booleans.\n\n.string(key)\n------------\n\nTell the parser logic not to 
interpret `key` as a number or boolean.\nThis can be useful if you need to 
preserve leading zeros in an input.\n\nIf `key` is an Array, interpret all the 
elements as strings.\n\n.wrap(columns)\n--------------\n\nFormat usage output 
to wrap at `columns` many columns.\n\n.help()\n-------\n\nReturn the generated 
usage 
string.\n\n.showHelp(fn=console.error)\n---------------------------\n\nPrint 
the usage data using `fn` for printing.\n\n.parse(args)\n------------\n\nParse 
`args` instead of `process.argv`. Returns the `argv` 
object.\n\n.argv\n-----\n\nGet the arguments as a plain old 
object.\n\nArguments without a corresponding flag show up in the `argv._` 
array.\n\nThe script name or node command is available at `argv
 .$0` similarly to how `$0`\nworks in bash or perl.\n\nparsing 
tricks\n==============\n\nstop parsing\n------------\n\nUse `--` to stop 
parsing flags and stuff the remainder into `argv._`.\n\n    $ node 
examples/reflect.js -a 1 -b 2 -- -c 3 -d 4\n    { _: [ '-c', '3', '-d', '4' 
],\n      '$0': 'node ./examples/reflect.js',\n      a: 1,\n      b: 2 
}\n\nnegate fields\n-------------\n\nIf you want to explicity set a field to 
false instead of just leaving it\nundefined or to override a default you can do 
`--no-key`.\n\n    $ node examples/reflect.js -a --no-b\n    { _: [],\n      
'$0': 'node ./examples/reflect.js',\n      a: true,\n      b: false 
}\n\nnumbers\n-------\n\nEvery argument that looks like a number 
(`!isNaN(Number(arg))`) is converted to\none. This way you can just 
`net.createConnection(argv.port)` and you can add\nnumbers out of `argv` with 
`+` without having that mean concatenation,\nwhich is super 
frustrating.\n\nduplicates\n----------\n\nIf you specify a flag multiple ti
 mes it will get turned into an array containing\nall the values in order.\n\n  
  $ node examples/reflect.js -x 5 -x 8 -x 0\n    { _: [],\n      '$0': 'node 
./examples/reflect.js',\n        x: [ 5, 8, 0 ] }\n\ndot 
notation\n------------\n\nWhen you use dots (`.`s) in argument names, an 
implicit object path is assumed.\nThis lets you organize arguments into nested 
objects.\n\n     $ node examples/reflect.js --foo.bar.baz=33 --foo.quux=5\n     
{ _: [],\n       '$0': 'node ./examples/reflect.js',\n         foo: { bar: { 
baz: 33 }, quux: 5 } }\n\nshort numbers\n-------------\n\nShort numeric `head 
-n5` style argument work too:\n\n    $ node reflect.js -n123 -m456\n    { '3': 
true,\n      '6': true,\n      _: [],\n      '$0': 'node ./reflect.js',\n      
n: 123,\n      m: 456 }\n\ninstallation\n============\n\nWith 
[npm](http://github.com/isaacs/npm), just do:\n    npm install optimist\n \nor 
clone this project on github:\n\n    git clone 
http://github.com/substack/node-optimist.git\n\nTo 
 run the tests with [expresso](http://github.com/visionmedia/expresso),\njust 
do:\n    \n    expresso\n\ninspired By\n===========\n\nThis module is loosely 
inspired by 
Perl's\n[Getopt::Casual](http://search.cpan.org/~photo/Getopt-Casual-0.13.1/Casual.pm).\n",
-  "readmeFilename": "readme.markdown",
-  "bugs": {
-    "url": "https://github.com/substack/node-optimist/issues";
-  },
-  "homepage": "https://github.com/substack/node-optimist";,
-  "_id": "[email protected]",
-  "_from": "[email protected]"
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/readme.markdown
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/readme.markdown
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/readme.markdown
deleted file mode 100644
index b74b437..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/readme.markdown
+++ /dev/null
@@ -1,513 +0,0 @@
-# DEPRECATION NOTICE
-
-I don't want to maintain this module anymore since I just use
-[minimist](https://npmjs.org/package/minimist), the argument parsing engine,
-directly instead nowadays.
-
-See [yargs](https://github.com/chevex/yargs) for the modern, pirate-themed
-successor to optimist.
-
-[![yarrrrrrrgs!](http://i.imgur.com/4WFGVJ9.png)](https://github.com/chevex/yargs)
-
-You should also consider [nomnom](https://github.com/harthur/nomnom).
-
-optimist
-========
-
-Optimist is a node.js library for option parsing for people who hate option
-parsing. More specifically, this module is for people who like all the --bells
-and -whistlz of program usage but think optstrings are a waste of time.
-
-With optimist, option parsing doesn't have to suck (as much).
-
-[![build 
status](https://secure.travis-ci.org/substack/node-optimist.png)](http://travis-ci.org/substack/node-optimist)
-
-examples
-========
-
-With Optimist, the options are just a hash! No optstrings attached.
--------------------------------------------------------------------
-
-xup.js:
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist').argv;
-
-if (argv.rif - 5 * argv.xup > 7.138) {
-    console.log('Buy more riffiwobbles');
-}
-else {
-    console.log('Sell the xupptumblers');
-}
-````
-
-***
-
-    $ ./xup.js --rif=55 --xup=9.52
-    Buy more riffiwobbles
-    
-    $ ./xup.js --rif 12 --xup 8.1
-    Sell the xupptumblers
-
-![This one's optimistic.](http://substack.net/images/optimistic.png)
-
-But wait! There's more! You can do short options:
--------------------------------------------------
- 
-short.js:
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist').argv;
-console.log('(%d,%d)', argv.x, argv.y);
-````
-
-***
-
-    $ ./short.js -x 10 -y 21
-    (10,21)
-
-And booleans, both long and short (and grouped):
-----------------------------------
-
-bool.js:
-
-````javascript
-#!/usr/bin/env node
-var util = require('util');
-var argv = require('optimist').argv;
-
-if (argv.s) {
-    util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
-}
-console.log(
-    (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
-);
-````
-
-***
-
-    $ ./bool.js -s
-    The cat says: meow
-    
-    $ ./bool.js -sp
-    The cat says: meow.
-
-    $ ./bool.js -sp --fr
-    Le chat dit: miaou.
-
-And non-hypenated options too! Just use `argv._`!
--------------------------------------------------
- 
-nonopt.js:
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist').argv;
-console.log('(%d,%d)', argv.x, argv.y);
-console.log(argv._);
-````
-
-***
-
-    $ ./nonopt.js -x 6.82 -y 3.35 moo
-    (6.82,3.35)
-    [ 'moo' ]
-    
-    $ ./nonopt.js foo -x 0.54 bar -y 1.12 baz
-    (0.54,1.12)
-    [ 'foo', 'bar', 'baz' ]
-
-Plus, Optimist comes with .usage() and .demand()!
--------------------------------------------------
-
-divide.js:
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist')
-    .usage('Usage: $0 -x [num] -y [num]')
-    .demand(['x','y'])
-    .argv;
-
-console.log(argv.x / argv.y);
-````
-
-***
- 
-    $ ./divide.js -x 55 -y 11
-    5
-    
-    $ node ./divide.js -x 4.91 -z 2.51
-    Usage: node ./divide.js -x [num] -y [num]
-
-    Options:
-      -x  [required]
-      -y  [required]
-
-    Missing required arguments: y
-
-EVEN MORE HOLY COW
-------------------
-
-default_singles.js:
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist')
-    .default('x', 10)
-    .default('y', 10)
-    .argv
-;
-console.log(argv.x + argv.y);
-````
-
-***
-
-    $ ./default_singles.js -x 5
-    15
-
-default_hash.js:
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist')
-    .default({ x : 10, y : 10 })
-    .argv
-;
-console.log(argv.x + argv.y);
-````
-
-***
-
-    $ ./default_hash.js -y 7
-    17
-
-And if you really want to get all descriptive about it...
----------------------------------------------------------
-
-boolean_single.js
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist')
-    .boolean('v')
-    .argv
-;
-console.dir(argv);
-````
-
-***
-
-    $ ./boolean_single.js -v foo bar baz
-    true
-    [ 'bar', 'baz', 'foo' ]
-
-boolean_double.js
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist')
-    .boolean(['x','y','z'])
-    .argv
-;
-console.dir([ argv.x, argv.y, argv.z ]);
-console.dir(argv._);
-````
-
-***
-
-    $ ./boolean_double.js -x -z one two three
-    [ true, false, true ]
-    [ 'one', 'two', 'three' ]
-
-Optimist is here to help...
----------------------------
-
-You can describe parameters for help messages and set aliases. Optimist figures
-out how to format a handy help string automatically.
-
-line_count.js
-
-````javascript
-#!/usr/bin/env node
-var argv = require('optimist')
-    .usage('Count the lines in a file.\nUsage: $0')
-    .demand('f')
-    .alias('f', 'file')
-    .describe('f', 'Load a file')
-    .argv
-;
-
-var fs = require('fs');
-var s = fs.createReadStream(argv.file);
-
-var lines = 0;
-s.on('data', function (buf) {
-    lines += buf.toString().match(/\n/g).length;
-});
-
-s.on('end', function () {
-    console.log(lines);
-});
-````
-
-***
-
-    $ node line_count.js
-    Count the lines in a file.
-    Usage: node ./line_count.js
-
-    Options:
-      -f, --file  Load a file  [required]
-
-    Missing required arguments: f
-
-    $ node line_count.js --file line_count.js 
-    20
-    
-    $ node line_count.js -f line_count.js 
-    20
-
-methods
-=======
-
-By itself,
-
-````javascript
-require('optimist').argv
-`````
-
-will use `process.argv` array to construct the `argv` object.
-
-You can pass in the `process.argv` yourself:
-
-````javascript
-require('optimist')([ '-x', '1', '-y', '2' ]).argv
-````
-
-or use .parse() to do the same thing:
-
-````javascript
-require('optimist').parse([ '-x', '1', '-y', '2' ])
-````
-
-The rest of these methods below come in just before the terminating `.argv`.
-
-.alias(key, alias)
-------------------
-
-Set key names as equivalent such that updates to a key will propagate to 
aliases
-and vice-versa.
-
-Optionally `.alias()` can take an object that maps keys to aliases.
-
-.default(key, value)
---------------------
-
-Set `argv[key]` to `value` if no option was specified on `process.argv`.
-
-Optionally `.default()` can take an object that maps keys to default values.
-
-.demand(key)
-------------
-
-If `key` is a string, show the usage information and exit if `key` wasn't
-specified in `process.argv`.
-
-If `key` is a number, demand at least as many non-option arguments, which show
-up in `argv._`.
-
-If `key` is an Array, demand each element.
-
-.describe(key, desc)
---------------------
-
-Describe a `key` for the generated usage information.
-
-Optionally `.describe()` can take an object that maps keys to descriptions.
-
-.options(key, opt)
-------------------
-
-Instead of chaining together `.alias().demand().default()`, you can specify
-keys in `opt` for each of the chainable methods.
-
-For example:
-
-````javascript
-var argv = require('optimist')
-    .options('f', {
-        alias : 'file',
-        default : '/etc/passwd',
-    })
-    .argv
-;
-````
-
-is the same as
-
-````javascript
-var argv = require('optimist')
-    .alias('f', 'file')
-    .default('f', '/etc/passwd')
-    .argv
-;
-````
-
-Optionally `.options()` can take an object that maps keys to `opt` parameters.
-
-.usage(message)
----------------
-
-Set a usage message to show which commands to use. Inside `message`, the string
-`$0` will get interpolated to the current script name or node command for the
-present script similar to how `$0` works in bash or perl.
-
-.check(fn)
-----------
-
-Check that certain conditions are met in the provided arguments.
-
-If `fn` throws or returns `false`, show the thrown error, usage information, 
and
-exit.
-
-.boolean(key)
--------------
-
-Interpret `key` as a boolean. If a non-flag option follows `key` in
-`process.argv`, that string won't get set as the value of `key`.
-
-If `key` never shows up as a flag in `process.arguments`, `argv[key]` will be
-`false`.
-
-If `key` is an Array, interpret all the elements as booleans.
-
-.string(key)
-------------
-
-Tell the parser logic not to interpret `key` as a number or boolean.
-This can be useful if you need to preserve leading zeros in an input.
-
-If `key` is an Array, interpret all the elements as strings.
-
-.wrap(columns)
---------------
-
-Format usage output to wrap at `columns` many columns.
-
-.help()
--------
-
-Return the generated usage string.
-
-.showHelp(fn=console.error)
----------------------------
-
-Print the usage data using `fn` for printing.
-
-.parse(args)
-------------
-
-Parse `args` instead of `process.argv`. Returns the `argv` object.
-
-.argv
------
-
-Get the arguments as a plain old object.
-
-Arguments without a corresponding flag show up in the `argv._` array.
-
-The script name or node command is available at `argv.$0` similarly to how `$0`
-works in bash or perl.
-
-parsing tricks
-==============
-
-stop parsing
-------------
-
-Use `--` to stop parsing flags and stuff the remainder into `argv._`.
-
-    $ node examples/reflect.js -a 1 -b 2 -- -c 3 -d 4
-    { _: [ '-c', '3', '-d', '4' ],
-      '$0': 'node ./examples/reflect.js',
-      a: 1,
-      b: 2 }
-
-negate fields
--------------
-
-If you want to explicity set a field to false instead of just leaving it
-undefined or to override a default you can do `--no-key`.
-
-    $ node examples/reflect.js -a --no-b
-    { _: [],
-      '$0': 'node ./examples/reflect.js',
-      a: true,
-      b: false }
-
-numbers
--------
-
-Every argument that looks like a number (`!isNaN(Number(arg))`) is converted to
-one. This way you can just `net.createConnection(argv.port)` and you can add
-numbers out of `argv` with `+` without having that mean concatenation,
-which is super frustrating.
-
-duplicates
-----------
-
-If you specify a flag multiple times it will get turned into an array 
containing
-all the values in order.
-
-    $ node examples/reflect.js -x 5 -x 8 -x 0
-    { _: [],
-      '$0': 'node ./examples/reflect.js',
-        x: [ 5, 8, 0 ] }
-
-dot notation
-------------
-
-When you use dots (`.`s) in argument names, an implicit object path is assumed.
-This lets you organize arguments into nested objects.
-
-     $ node examples/reflect.js --foo.bar.baz=33 --foo.quux=5
-     { _: [],
-       '$0': 'node ./examples/reflect.js',
-         foo: { bar: { baz: 33 }, quux: 5 } }
-
-short numbers
--------------
-
-Short numeric `head -n5` style argument work too:
-
-    $ node reflect.js -n123 -m456
-    { '3': true,
-      '6': true,
-      _: [],
-      '$0': 'node ./reflect.js',
-      n: 123,
-      m: 456 }
-
-installation
-============
-
-With [npm](http://github.com/isaacs/npm), just do:
-    npm install optimist
- 
-or clone this project on github:
-
-    git clone http://github.com/substack/node-optimist.git
-
-To run the tests with [expresso](http://github.com/visionmedia/expresso),
-just do:
-    
-    expresso
-
-inspired By
-===========
-
-This module is loosely inspired by Perl's
-[Getopt::Casual](http://search.cpan.org/~photo/Getopt-Casual-0.13.1/Casual.pm).

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_.js 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_.js
deleted file mode 100644
index d9c58b3..0000000
--- a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_.js
+++ /dev/null
@@ -1,71 +0,0 @@
-var spawn = require('child_process').spawn;
-var test = require('tap').test;
-
-test('dotSlashEmpty', testCmd('./bin.js', []));
-
-test('dotSlashArgs', testCmd('./bin.js', [ 'a', 'b', 'c' ]));
-
-test('nodeEmpty', testCmd('node bin.js', []));
-
-test('nodeArgs', testCmd('node bin.js', [ 'x', 'y', 'z' ]));
-
-test('whichNodeEmpty', function (t) {
-    var which = spawn('which', ['node']);
-    
-    which.stdout.on('data', function (buf) {
-        t.test(
-            testCmd(buf.toString().trim() + ' bin.js', [])
-        );
-        t.end();
-    });
-    
-    which.stderr.on('data', function (err) {
-        assert.error(err);
-        t.end();
-    });
-});
-
-test('whichNodeArgs', function (t) {
-    var which = spawn('which', ['node']);
-
-    which.stdout.on('data', function (buf) {
-        t.test(
-            testCmd(buf.toString().trim() + ' bin.js', [ 'q', 'r' ])
-        );
-        t.end();
-    });
-    
-    which.stderr.on('data', function (err) {
-        t.error(err);
-        t.end();
-    });
-});
-
-function testCmd (cmd, args) {
-
-    return function (t) {
-        var to = setTimeout(function () {
-            assert.fail('Never got stdout data.')
-        }, 5000);
-        
-        var oldDir = process.cwd();
-        process.chdir(__dirname + '/_');
-        
-        var cmds = cmd.split(' ');
-        
-        var bin = spawn(cmds[0], cmds.slice(1).concat(args.map(String)));
-        process.chdir(oldDir);
-        
-        bin.stderr.on('data', function (err) {
-            t.error(err);
-            t.end();
-        });
-        
-        bin.stdout.on('data', function (buf) {
-            clearTimeout(to);
-            var _ = JSON.parse(buf.toString());
-            t.same(_.map(String), args.map(String));
-            t.end();
-        });
-    };
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/argv.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/argv.js
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/argv.js
deleted file mode 100644
index 3d09606..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/argv.js
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/usr/bin/env node
-console.log(JSON.stringify(process.argv));

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/bin.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/bin.js 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/bin.js
deleted file mode 100755
index 4a18d85..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/_/bin.js
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env node
-var argv = require('../../index').argv
-console.log(JSON.stringify(argv._));

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/dash.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/dash.js 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/dash.js
deleted file mode 100644
index af8ed6f..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/dash.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var optimist = require('../index');
-var test = require('tap').test;
-
-test('-', function (t) {
-    t.plan(5);
-    t.deepEqual(
-        fix(optimist.parse([ '-n', '-' ])),
-        { n: '-', _: [] }
-    );
-    t.deepEqual(
-        fix(optimist.parse([ '-' ])),
-        { _: [ '-' ] }
-    );
-    t.deepEqual(
-        fix(optimist.parse([ '-f-' ])),
-        { f: '-', _: [] }
-    );
-    t.deepEqual(
-        fix(optimist([ '-b', '-' ]).boolean('b').argv),
-        { b: true, _: [ '-' ] }
-    );
-    t.deepEqual(
-        fix(optimist([ '-s', '-' ]).string('s').argv),
-        { s: '-', _: [] }
-    );
-});
-
-function fix (obj) {
-    delete obj.$0;
-    return obj;
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse.js 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse.js
deleted file mode 100644
index d320f43..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse.js
+++ /dev/null
@@ -1,446 +0,0 @@
-var optimist = require('../index');
-var path = require('path');
-var test = require('tap').test;
-
-var $0 = 'node ./' + path.relative(process.cwd(), __filename);
-
-test('short boolean', function (t) {
-    var parse = optimist.parse([ '-b' ]);
-    t.same(parse, { b : true, _ : [], $0 : $0 });
-    t.same(typeof parse.b, 'boolean');
-    t.end();
-});
-
-test('long boolean', function (t) {
-    t.same(
-        optimist.parse([ '--bool' ]),
-        { bool : true, _ : [], $0 : $0 }
-    );
-    t.end();
-});
-    
-test('bare', function (t) {
-    t.same(
-        optimist.parse([ 'foo', 'bar', 'baz' ]),
-        { _ : [ 'foo', 'bar', 'baz' ], $0 : $0 }
-    );
-    t.end();
-});
-
-test('short group', function (t) {
-    t.same(
-        optimist.parse([ '-cats' ]),
-        { c : true, a : true, t : true, s : true, _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('short group next', function (t) {
-    t.same(
-        optimist.parse([ '-cats', 'meow' ]),
-        { c : true, a : true, t : true, s : 'meow', _ : [], $0 : $0 }
-    );
-    t.end();
-});
- 
-test('short capture', function (t) {
-    t.same(
-        optimist.parse([ '-h', 'localhost' ]),
-        { h : 'localhost', _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('short captures', function (t) {
-    t.same(
-        optimist.parse([ '-h', 'localhost', '-p', '555' ]),
-        { h : 'localhost', p : 555, _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('long capture sp', function (t) {
-    t.same(
-        optimist.parse([ '--pow', 'xixxle' ]),
-        { pow : 'xixxle', _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('long capture eq', function (t) {
-    t.same(
-        optimist.parse([ '--pow=xixxle' ]),
-        { pow : 'xixxle', _ : [], $0 : $0 }
-    );
-    t.end()
-});
-
-test('long captures sp', function (t) {
-    t.same(
-        optimist.parse([ '--host', 'localhost', '--port', '555' ]),
-        { host : 'localhost', port : 555, _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('long captures eq', function (t) {
-    t.same(
-        optimist.parse([ '--host=localhost', '--port=555' ]),
-        { host : 'localhost', port : 555, _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('mixed short bool and capture', function (t) {
-    t.same(
-        optimist.parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
-        {
-            f : true, p : 555, h : 'localhost',
-            _ : [ 'script.js' ], $0 : $0,
-        }
-    );
-    t.end();
-});
- 
-test('short and long', function (t) {
-    t.same(
-        optimist.parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]),
-        {
-            f : true, p : 555, h : 'localhost',
-            _ : [ 'script.js' ], $0 : $0,
-        }
-    );
-    t.end();
-});
-
-test('no', function (t) {
-    t.same(
-        optimist.parse([ '--no-moo' ]),
-        { moo : false, _ : [], $0 : $0 }
-    );
-    t.end();
-});
- 
-test('multi', function (t) {
-    t.same(
-        optimist.parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]),
-        { v : ['a','b','c'], _ : [], $0 : $0 }
-    );
-    t.end();
-});
- 
-test('comprehensive', function (t) {
-    t.same(
-        optimist.parse([
-            '--name=meowmers', 'bare', '-cats', 'woo',
-            '-h', 'awesome', '--multi=quux',
-            '--key', 'value',
-            '-b', '--bool', '--no-meep', '--multi=baz',
-            '--', '--not-a-flag', 'eek'
-        ]),
-        {
-            c : true,
-            a : true,
-            t : true,
-            s : 'woo',
-            h : 'awesome',
-            b : true,
-            bool : true,
-            key : 'value',
-            multi : [ 'quux', 'baz' ],
-            meep : false,
-            name : 'meowmers',
-            _ : [ 'bare', '--not-a-flag', 'eek' ],
-            $0 : $0
-        }
-    );
-    t.end();
-});
-
-test('nums', function (t) {
-    var argv = optimist.parse([
-        '-x', '1234',
-        '-y', '5.67',
-        '-z', '1e7',
-        '-w', '10f',
-        '--hex', '0xdeadbeef',
-        '789',
-    ]);
-    t.same(argv, {
-        x : 1234,
-        y : 5.67,
-        z : 1e7,
-        w : '10f',
-        hex : 0xdeadbeef,
-        _ : [ 789 ],
-        $0 : $0
-    });
-    t.same(typeof argv.x, 'number');
-    t.same(typeof argv.y, 'number');
-    t.same(typeof argv.z, 'number');
-    t.same(typeof argv.w, 'string');
-    t.same(typeof argv.hex, 'number');
-    t.same(typeof argv._[0], 'number');
-    t.end();
-});
-
-test('flag boolean', function (t) {
-    var parse = optimist([ '-t', 'moo' ]).boolean(['t']).argv;
-    t.same(parse, { t : true, _ : [ 'moo' ], $0 : $0 });
-    t.same(typeof parse.t, 'boolean');
-    t.end();
-});
-
-test('flag boolean value', function (t) {
-    var parse = optimist(['--verbose', 'false', 'moo', '-t', 'true'])
-        .boolean(['t', 'verbose']).default('verbose', true).argv;
-    
-    t.same(parse, {
-        verbose: false,
-        t: true,
-        _: ['moo'],
-        $0 : $0
-    });
-    
-    t.same(typeof parse.verbose, 'boolean');
-    t.same(typeof parse.t, 'boolean');
-    t.end();
-});
-
-test('flag boolean default false', function (t) {
-    var parse = optimist(['moo'])
-        .boolean(['t', 'verbose'])
-        .default('verbose', false)
-        .default('t', false).argv;
-    
-    t.same(parse, {
-        verbose: false,
-        t: false,
-        _: ['moo'],
-        $0 : $0
-    });
-    
-    t.same(typeof parse.verbose, 'boolean');
-    t.same(typeof parse.t, 'boolean');
-    t.end();
-
-});
-
-test('boolean groups', function (t) {
-    var parse = optimist([ '-x', '-z', 'one', 'two', 'three' ])
-        .boolean(['x','y','z']).argv;
-    
-    t.same(parse, {
-        x : true,
-        y : false,
-        z : true,
-        _ : [ 'one', 'two', 'three' ],
-        $0 : $0
-    });
-    
-    t.same(typeof parse.x, 'boolean');
-    t.same(typeof parse.y, 'boolean');
-    t.same(typeof parse.z, 'boolean');
-    t.end();
-});
-
-test('newlines in params' , function (t) {
-    var args = optimist.parse([ '-s', "X\nX" ])
-    t.same(args, { _ : [], s : "X\nX", $0 : $0 });
-
-    // reproduce in bash:
-    // VALUE="new
-    // line"
-    // node program.js --s="$VALUE"
-    args = optimist.parse([ "--s=X\nX" ])
-    t.same(args, { _ : [], s : "X\nX", $0 : $0 });
-    t.end();
-});
-
-test('strings' , function (t) {
-    var s = optimist([ '-s', '0001234' ]).string('s').argv.s;
-    t.same(s, '0001234');
-    t.same(typeof s, 'string');
-    
-    var x = optimist([ '-x', '56' ]).string('x').argv.x;
-    t.same(x, '56');
-    t.same(typeof x, 'string');
-    t.end();
-});
-
-test('stringArgs', function (t) {
-    var s = optimist([ '  ', '  ' ]).string('_').argv._;
-    t.same(s.length, 2);
-    t.same(typeof s[0], 'string');
-    t.same(s[0], '  ');
-    t.same(typeof s[1], 'string');
-    t.same(s[1], '  ');
-    t.end();
-});
-
-test('slashBreak', function (t) {
-    t.same(
-        optimist.parse([ '-I/foo/bar/baz' ]),
-        { I : '/foo/bar/baz', _ : [], $0 : $0 }
-    );
-    t.same(
-        optimist.parse([ '-xyz/foo/bar/baz' ]),
-        { x : true, y : true, z : '/foo/bar/baz', _ : [], $0 : $0 }
-    );
-    t.end();
-});
-
-test('alias', function (t) {
-    var argv = optimist([ '-f', '11', '--zoom', '55' ])
-        .alias('z', 'zoom')
-        .argv
-    ;
-    t.equal(argv.zoom, 55);
-    t.equal(argv.z, argv.zoom);
-    t.equal(argv.f, 11);
-    t.end();
-});
-
-test('multiAlias', function (t) {
-    var argv = optimist([ '-f', '11', '--zoom', '55' ])
-        .alias('z', [ 'zm', 'zoom' ])
-        .argv
-    ;
-    t.equal(argv.zoom, 55);
-    t.equal(argv.z, argv.zoom);
-    t.equal(argv.z, argv.zm);
-    t.equal(argv.f, 11);
-    t.end();
-});
-
-test('boolean default true', function (t) {
-    var argv = optimist.options({
-        sometrue: {
-            boolean: true,
-            default: true
-        }
-    }).argv;
-  
-    t.equal(argv.sometrue, true);
-    t.end();
-});
-
-test('boolean default false', function (t) {
-    var argv = optimist.options({
-        somefalse: {
-            boolean: true,
-            default: false
-        }
-    }).argv;
-
-    t.equal(argv.somefalse, false);
-    t.end();
-});
-
-test('nested dotted objects', function (t) {
-    var argv = optimist([
-        '--foo.bar', '3', '--foo.baz', '4',
-        '--foo.quux.quibble', '5', '--foo.quux.o_O',
-        '--beep.boop'
-    ]).argv;
-    
-    t.same(argv.foo, {
-        bar : 3,
-        baz : 4,
-        quux : {
-            quibble : 5,
-            o_O : true
-        },
-    });
-    t.same(argv.beep, { boop : true });
-    t.end();
-});
-
-test('boolean and alias with chainable api', function (t) {
-    var aliased = [ '-h', 'derp' ];
-    var regular = [ '--herp',  'derp' ];
-    var opts = {
-        herp: { alias: 'h', boolean: true }
-    };
-    var aliasedArgv = optimist(aliased)
-        .boolean('herp')
-        .alias('h', 'herp')
-        .argv;
-    var propertyArgv = optimist(regular)
-        .boolean('herp')
-        .alias('h', 'herp')
-        .argv;
-    var expected = {
-        herp: true,
-        h: true,
-        '_': [ 'derp' ],
-        '$0': $0,
-    };
-
-    t.same(aliasedArgv, expected);
-    t.same(propertyArgv, expected); 
-    t.end();
-});
-
-test('boolean and alias with options hash', function (t) {
-    var aliased = [ '-h', 'derp' ];
-    var regular = [ '--herp', 'derp' ];
-    var opts = {
-        herp: { alias: 'h', boolean: true }
-    };
-    var aliasedArgv = optimist(aliased)
-      .options(opts)
-      .argv;
-    var propertyArgv = optimist(regular).options(opts).argv;
-    var expected = {
-        herp: true,
-        h: true,
-        '_': [ 'derp' ],
-        '$0': $0,
-    };
-
-    t.same(aliasedArgv, expected);
-    t.same(propertyArgv, expected);
-
-    t.end();
-});
-
-test('boolean and alias using explicit true', function (t) {
-    var aliased = [ '-h', 'true' ];
-    var regular = [ '--herp',  'true' ];
-    var opts = {
-        herp: { alias: 'h', boolean: true }
-    };
-    var aliasedArgv = optimist(aliased)
-        .boolean('h')
-        .alias('h', 'herp')
-        .argv;
-    var propertyArgv = optimist(regular)
-        .boolean('h')
-        .alias('h', 'herp')
-        .argv;
-    var expected = {
-        herp: true,
-        h: true,
-        '_': [ ],
-        '$0': $0,
-    };
-
-    t.same(aliasedArgv, expected);
-    t.same(propertyArgv, expected); 
-    t.end();
-});
-
-// regression, see https://github.com/substack/node-optimist/issues/71
-test('boolean and --x=true', function(t) {
-    var parsed = optimist(['--boool', '--other=true']).boolean('boool').argv;
-
-    t.same(parsed.boool, true);
-    t.same(parsed.other, 'true');
-
-    parsed = optimist(['--boool', '--other=false']).boolean('boool').argv;
-
-    t.same(parsed.boool, true);
-    t.same(parsed.other, 'false');
-    t.end();
-});

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse_modified.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse_modified.js
 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse_modified.js
deleted file mode 100644
index a57dc84..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/parse_modified.js
+++ /dev/null
@@ -1,14 +0,0 @@
-var optimist = require('../');
-var test = require('tap').test;
-
-test('parse with modifier functions' , function (t) {
-    t.plan(1);
-    
-    var argv = optimist().boolean('b').parse([ '-b', '123' ]);
-    t.deepEqual(fix(argv), { b: true, _: ['123'] });
-});
-
-function fix (obj) {
-    delete obj.$0;
-    return obj;
-}

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/short.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/short.js 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/short.js
deleted file mode 100644
index b2c38ad..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/short.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var optimist = require('../index');
-var test = require('tap').test;
-
-test('-n123', function (t) {
-    t.plan(1);
-    var parse = optimist.parse([ '-n123' ]);
-    t.equal(parse.n, 123);
-});
-
-test('-123', function (t) {
-    t.plan(3);
-    var parse = optimist.parse([ '-123', '456' ]);
-    t.equal(parse['1'], true);
-    t.equal(parse['2'], true);
-    t.equal(parse['3'], 456);
-});

http://git-wip-us.apache.org/repos/asf/incubator-apex-malhar/blob/e1a45507/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/usage.js
----------------------------------------------------------------------
diff --git 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/usage.js 
b/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/usage.js
deleted file mode 100644
index 300454c..0000000
--- 
a/web/demos/package/node_modules/http-proxy/node_modules/optimist/test/usage.js
+++ /dev/null
@@ -1,292 +0,0 @@
-var Hash = require('hashish');
-var optimist = require('../index');
-var test = require('tap').test;
-
-test('usageFail', function (t) {
-    var r = checkUsage(function () {
-        return optimist('-x 10 -z 20'.split(' '))
-            .usage('Usage: $0 -x NUM -y NUM')
-            .demand(['x','y'])
-            .argv;
-    });
-    t.same(
-        r.result,
-        { x : 10, z : 20, _ : [], $0 : './usage' }
-    );
-
-    t.same(
-        r.errors.join('\n').split(/\n+/),
-        [
-            'Usage: ./usage -x NUM -y NUM',
-            'Options:',
-            '  -x  [required]',
-            '  -y  [required]',
-            'Missing required arguments: y',
-        ]
-    );
-    t.same(r.logs, []);
-    t.ok(r.exit);
-    t.end();
-});
-
-
-test('usagePass', function (t) {
-    var r = checkUsage(function () {
-        return optimist('-x 10 -y 20'.split(' '))
-            .usage('Usage: $0 -x NUM -y NUM')
-            .demand(['x','y'])
-            .argv;
-    });
-    t.same(r, {
-        result : { x : 10, y : 20, _ : [], $0 : './usage' },
-        errors : [],
-        logs : [],
-        exit : false,
-    });
-    t.end();
-});
-
-test('checkPass', function (t) {
-    var r = checkUsage(function () {
-        return optimist('-x 10 -y 20'.split(' '))
-            .usage('Usage: $0 -x NUM -y NUM')
-            .check(function (argv) {
-                if (!('x' in argv)) throw 'You forgot about -x';
-                if (!('y' in argv)) throw 'You forgot about -y';
-            })
-            .argv;
-    });
-    t.same(r, {
-        result : { x : 10, y : 20, _ : [], $0 : './usage' },
-        errors : [],
-        logs : [],
-        exit : false,
-    });
-    t.end();
-});
-
-test('checkFail', function (t) {
-    var r = checkUsage(function () {
-        return optimist('-x 10 -z 20'.split(' '))
-            .usage('Usage: $0 -x NUM -y NUM')
-            .check(function (argv) {
-                if (!('x' in argv)) throw 'You forgot about -x';
-                if (!('y' in argv)) throw 'You forgot about -y';
-            })
-            .argv;
-    });
-
-    t.same(
-        r.result,
-        { x : 10, z : 20, _ : [], $0 : './usage' }
-    );
-
-    t.same(
-        r.errors.join('\n').split(/\n+/),
-        [
-            'Usage: ./usage -x NUM -y NUM',
-            'You forgot about -y'
-        ]
-    );
-
-    t.same(r.logs, []);
-    t.ok(r.exit);
-    t.end();
-});
-
-test('checkCondPass', function (t) {
-    function checker (argv) {
-        return 'x' in argv && 'y' in argv;
-    }
-
-    var r = checkUsage(function () {
-        return optimist('-x 10 -y 20'.split(' '))
-            .usage('Usage: $0 -x NUM -y NUM')
-            .check(checker)
-            .argv;
-    });
-    t.same(r, {
-        result : { x : 10, y : 20, _ : [], $0 : './usage' },
-        errors : [],
-        logs : [],
-        exit : false,
-    });
-    t.end();
-});
-
-test('checkCondFail', function (t) {
-    function checker (argv) {
-        return 'x' in argv && 'y' in argv;
-    }
-
-    var r = checkUsage(function () {
-        return optimist('-x 10 -z 20'.split(' '))
-            .usage('Usage: $0 -x NUM -y NUM')
-            .check(checker)
-            .argv;
-    });
-
-    t.same(
-        r.result,
-        { x : 10, z : 20, _ : [], $0 : './usage' }
-    );
-
-    t.same(
-        r.errors.join('\n').split(/\n+/).join('\n'),
-        'Usage: ./usage -x NUM -y NUM\n'
-        + 'Argument check failed: ' + checker.toString()
-    );
-
-    t.same(r.logs, []);
-    t.ok(r.exit);
-    t.end();
-});
-
-test('countPass', function (t) {
-    var r = checkUsage(function () {
-        return optimist('1 2 3 --moo'.split(' '))
-            .usage('Usage: $0 [x] [y] [z] {OPTIONS}')
-            .demand(3)
-            .argv;
-    });
-    t.same(r, {
-        result : { _ : [ '1', '2', '3' ], moo : true, $0 : './usage' },
-        errors : [],
-        logs : [],
-        exit : false,
-    });
-    t.end();
-});
-
-test('countFail', function (t) {
-    var r = checkUsage(function () {
-        return optimist('1 2 --moo'.split(' '))
-            .usage('Usage: $0 [x] [y] [z] {OPTIONS}')
-            .demand(3)
-            .argv;
-    });
-    t.same(
-        r.result,
-        { _ : [ '1', '2' ], moo : true, $0 : './usage' }
-    );
-
-    t.same(
-        r.errors.join('\n').split(/\n+/),
-        [
-            'Usage: ./usage [x] [y] [z] {OPTIONS}',
-            'Not enough non-option arguments: got 2, need at least 3',
-        ]
-    );
-
-    t.same(r.logs, []);
-    t.ok(r.exit);
-    t.end();
-});
-
-test('defaultSingles', function (t) {
-    var r = checkUsage(function () {
-        return optimist('--foo 50 --baz 70 --powsy'.split(' '))
-            .default('foo', 5)
-            .default('bar', 6)
-            .default('baz', 7)
-            .argv
-        ;
-    });
-    t.same(r.result, {
-        foo : '50',
-        bar : 6,
-        baz : '70',
-        powsy : true,
-        _ : [],
-        $0 : './usage',
-    });
-    t.end();
-});
-
-test('defaultAliases', function (t) {
-    var r = checkUsage(function () {
-        return optimist('')
-            .alias('f', 'foo')
-            .default('f', 5)
-            .argv
-        ;
-    });
-    t.same(r.result, {
-        f : '5',
-        foo : '5',
-        _ : [],
-        $0 : './usage',
-    });
-    t.end();
-});
-
-test('defaultHash', function (t) {
-    var r = checkUsage(function () {
-        return optimist('--foo 50 --baz 70'.split(' '))
-            .default({ foo : 10, bar : 20, quux : 30 })
-            .argv
-        ;
-    });
-    t.same(r.result, {
-        _ : [],
-        $0 : './usage',
-        foo : 50,
-        baz : 70,
-        bar : 20,
-        quux : 30,
-    });
-    t.end();
-});
-
-test('rebase', function (t) {
-    t.equal(
-        optimist.rebase('/home/substack', '/home/substack/foo/bar/baz'),
-        './foo/bar/baz'
-    );
-    t.equal(
-        optimist.rebase('/home/substack/foo/bar/baz', '/home/substack'),
-        '../../..'
-    );
-    t.equal(
-        optimist.rebase('/home/substack/foo', '/home/substack/pow/zoom.txt'),
-        '../pow/zoom.txt'
-    );
-    t.end();
-});
-
-function checkUsage (f) {
-
-    var exit = false;
-
-    process._exit = process.exit;
-    process._env = process.env;
-    process._argv = process.argv;
-
-    process.exit = function (t) { exit = true };
-    process.env = Hash.merge(process.env, { _ : 'node' });
-    process.argv = [ './usage' ];
-
-    var errors = [];
-    var logs = [];
-
-    console._error = console.error;
-    console.error = function (msg) { errors.push(msg) };
-    console._log = console.log;
-    console.log = function (msg) { logs.push(msg) };
-
-    var result = f();
-
-    process.exit = process._exit;
-    process.env = process._env;
-    process.argv = process._argv;
-
-    console.error = console._error;
-    console.log = console._log;
-
-    return {
-        errors : errors,
-        logs : logs,
-        exit : exit,
-        result : result,
-    };
-};


Reply via email to