repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-map-generator.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-array-set.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-binary-search.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-api.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2012 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-base64-vlq.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/test-source-node.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/test/source-map/util.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/suffix-browser.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /////////////////////////////////////////////////////////////////////////////// this.sourceMap = { SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer, SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator, SourceN...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/test-prefix.js
/* * WARNING! * * Do not edit this file directly, it is built from the sources at * https://github.com/mozilla/source-map/ */ Components.utils.import('resource://test/Utils.jsm');
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/mini-require.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/mini-require.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ /** * Define a module along with a payload. * @param {string} moduleName Name for the payload * @param {ignor...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/assert-shim.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ define('test/source-map/assert', ['exports'], function (exports) { let do_throw = function (msg) { throw n...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/build/test-suffix.js
function run_test() { runSourceMapTests('{THIS_MODULE}', do_throw); }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map.js
/* * Copyright 2009-2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE.txt or: * http://opensource.org/licenses/BSD-3-Clause */ exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator; exports.SourceMapConsumer = require('./source-map/sour...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-node.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/array-set.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-generator.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/base64-vlq.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause * * Based on the Base 64 VLQ implementation in Closure Compiler: * https://code.google.com/p/closure-compiler/sour...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/source-map-consumer.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/binary-search.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/lib/source-map/util.js
/* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ if (typeof define !== 'function') { var define = require('amdefine')(module, require); } define(function (req...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/index.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/index.js
var path = require('path'); var wordwrap = require('wordwrap'); /* Hack an instance of Argv with process.argv into Argv so people can do require('optimist')(['--beeble=1','-z','zizzle']).argv to parse a list of args and require('optimist').argv to get a parsed version of process.argv. */ ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/index.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/index.js
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; ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/test/wrap.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/test/wrap.js
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 (li...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/test/break.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/test/break.js
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); va...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/example/meat.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/example/meat.js
var wrap = require('wordwrap')(15); console.log(wrap('You and your whole family are made out of meat.'));
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/example/center.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/node_modules/wordwrap/example/center.js
var wrap = require('wordwrap')(20, 60); console.log(wrap( 'At long last the struggle and tumult was over.' + ' The machines had finally cast off their oppressors' + ' and were finally free to roam the cosmos.' + '\n' + 'Free of purpose, free of obligation.' + ' Just drifting through emptiness.' ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/parse.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/parse.js
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, 'bo...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/_.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/_.js
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'...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/usage.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/usage.js
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; ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/_/bin.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/_/bin.js
#!/usr/bin/env node var argv = require('../../index').argv console.log(JSON.stringify(argv._));
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/_/argv.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/test/_/argv.js
#!/usr/bin/env node console.log(JSON.stringify(process.argv));
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/reflect.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/reflect.js
#!/usr/bin/env node console.dir(require('optimist').argv);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/nonopt.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/nonopt.js
#!/usr/bin/env node var argv = require('optimist').argv; console.log('(%d,%d)', argv.x, argv.y); console.log(argv._);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/string.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/string.js
#!/usr/bin/env node var argv = require('optimist') .string('x', 'y') .argv ; console.dir([ argv.x, argv.y ]); /* Turns off numeric coercion: ./node string.js -x 000123 -y 9876 [ '000123', '9876' ] */
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/xup.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/xup.js
#!/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'); }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/divide.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/divide.js
#!/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);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/short.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/short.js
#!/usr/bin/env node var argv = require('optimist').argv; console.log('(%d,%d)', argv.x, argv.y);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/default_hash.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/default_hash.js
#!/usr/bin/env node var argv = require('optimist') .default({ x : 10, y : 10 }) .argv ; console.log(argv.x + argv.y);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/line_count_options.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/line_count_options.js
#!/usr/bin/env node var argv = require('optimist') .usage('Count the lines in a file.\nUsage: $0') .options({ file : { demand : true, alias : 'f', description : 'Load a file' }, base : { alias : 'b', description : 'Numeric base ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/default_singles.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/default_singles.js
#!/usr/bin/env node var argv = require('optimist') .default('x', 10) .default('y', 10) .argv ; console.log(argv.x + argv.y);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/boolean_double.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/boolean_double.js
#!/usr/bin/env node var argv = require('optimist') .boolean(['x','y','z']) .argv ; console.dir([ argv.x, argv.y, argv.z ]); console.dir(argv._);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/line_count_wrap.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/line_count_wrap.js
#!/usr/bin/env node var argv = require('optimist') .usage('Count the lines in a file.\nUsage: $0') .wrap(80) .demand('f') .alias('f', [ 'file', 'filename' ]) .describe('f', "Load a file. It's pretty important." + " Required even. So you'd better specify it." ) .alias('b', 'ba...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/bool.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/bool.js
#!/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 ? '.' : '') );
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/line_count.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/line_count.js
#!/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.to...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/boolean_single.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/boolean_single.js
#!/usr/bin/env node var argv = require('optimist') .boolean('v') .argv ; console.dir(argv.v); console.dir(argv._);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/usage-options.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/example/usage-options.js
var optimist = require('./../index'); var argv = optimist.usage('This is my awesome program', { 'about': { description: 'Provide some details about the author of this program', required: true, short: 'a', }, 'info': { description: 'Provide some information about the node.js agains!!!!!!', boo...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/run-tests.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/run-tests.js
#! /usr/bin/env node var U = require("../tools/node"); var path = require("path"); var fs = require("fs"); var assert = require("assert"); var sys = require("util"); var tests_dir = path.dirname(module.filename); run_compress_tests(); /* -----[ utils ]----- */ function tmpl() { return U.string_template.apply(t...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/switch.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/switch.js
constant_switch_1: { options = { dead_code: true, evaluate: true }; input: { switch (1+1) { case 1: foo(); break; case 1+1: bar(); break; case 1+1+1: baz(); break; } } expect: { bar(); } } constant_switch_2: { options = { dead_code: true, ev...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/sequences.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/sequences.js
make_sequences_1: { options = { sequences: true }; input: { foo(); bar(); baz(); } expect: { foo(),bar(),baz(); } } make_sequences_2: { options = { sequences: true }; input: { if (boo) { foo(); bar(); ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-22.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-22.js
return_with_no_value_in_if_body: { options = { conditionals: true }; input: { function foo(bar) { if (bar) { return; } else { return 1; } } } expect: { function foo (bar) { return bar ? void 0 : 1; ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/properties.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/properties.js
keep_properties: { options = { properties: false }; input: { a["foo"] = "bar"; } expect: { a["foo"] = "bar"; } } dot_properties: { options = { properties: true }; input: { a["foo"] = "bar"; a["if"] = "if"; } expect: { a...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/blocks.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/blocks.js
remove_blocks: { input: { {;} foo(); {}; { {}; }; bar(); {} } expect: { foo(); bar(); } } keep_some_blocks: { input: { // 1. if (foo) { {{{}}} if (bar) { baz(); } ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-59.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-59.js
keep_continue: { options = { dead_code: true, evaluate: true }; input: { while (a) { if (b) { switch (true) { case c(): d(); } continue; } f(); } } ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-105.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-105.js
typeof_eq_undefined: { options = { comparisons: true, unsafe: false }; input: { a = typeof b.c != "undefined" } expect: { a = "undefined" != typeof b.c } } typeof_eq_undefined_unsafe: { options = { comparisons: true, unsafe: true }; input: { a = typeof b.c !=...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/conditionals.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/conditionals.js
ifs_1: { options = { conditionals: true }; input: { if (foo) bar(); if (!foo); else bar(); if (foo); else bar(); if (foo); else; } expect: { foo&&bar(); foo&&bar(); foo||bar(); foo; } } ifs_2: { options = { cond...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/drop-unused.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/drop-unused.js
unused_funarg_1: { options = { unused: true }; input: { function f(a, b, c, d, e) { return a + b; } } expect: { function f(a, b) { return a + b; } } } unused_funarg_2: { options = { unused: true }; input: { function f(a, b, c, ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-12.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-12.js
keep_name_of_getter: { options = { unused: true }; input: { a = { get foo () {} } } expect: { a = { get foo () {} } } } keep_name_of_setter: { options = { unused: true }; input: { a = { set foo () {} } } expect: { a = { set foo () {} } } }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/debugger.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/debugger.js
keep_debugger: { options = { drop_debugger: false }; input: { debugger; } expect: { debugger; } } drop_debugger: { options = { drop_debugger: true }; input: { debugger; if (foo) debugger; } expect: { if (foo); } }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-44.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/issue-44.js
issue_44_valid_ast_1: { options = { unused: true }; input: { function a(b) { for (var i = 0, e = b.qoo(); ; i++) {} } } expect: { function a(b) { var i = 0; for (b.qoo(); ; i++); } } } issue_44_valid_ast_2: { options = { unused...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/labels.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/labels.js
labels_1: { options = { if_return: true, conditionals: true, dead_code: true }; input: { out: { if (foo) break out; console.log("bar"); } }; expect: { foo || console.log("bar"); } } labels_2: { options = { if_return: true, conditionals: true, dead...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/arrays.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/arrays.js
holes_and_undefined: { input: { x = [1, 2, undefined]; y = [1, , 2, ]; z = [1, undefined, 3]; } expect: { x=[1,2,void 0]; y=[1,,2]; z=[1,void 0,3]; } }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/dead-code.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/dead-code.js
dead_code_1: { options = { dead_code: true }; input: { function f() { a(); b(); x = 10; return; if (x) { y(); } } } expect: { function f() { a(); b(); ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/loops.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/test/compress/loops.js
while_becomes_for: { options = { loops: true }; input: { while (foo()) bar(); } expect: { for (; foo(); ) bar(); } } drop_if_break_1: { options = { loops: true }; input: { for (;;) if (foo()) break; } expect: { for (; !foo();); } } dr...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/compress.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/compress.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
true
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/sourcemap.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/sourcemap.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/ast.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/ast.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/scope.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/scope.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/parse.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/parse.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
true
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/output.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/output.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
true
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/mozilla-ast.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/mozilla-ast.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/utils.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/utils.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/transform.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/lib/transform.js
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/index.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/index.js
var assert = require('assert'); var rfile = require('rfile'); var ruglify = require('../'); describe('ruglify(file)', function () { it('returns the minified source code for the file', function () { assert.equal(ruglify('./fixture/jquery.js'), rfile('./fixture/jquery.min.js')); }); });
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.min.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.min.js
(function(e,t){function n(e){var t=e.length,n=ut.type(e);return ut.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Nt[e]={};return ut.each(e.match(ct)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ut.acceptData(e)){var o,a,s=ut.expan...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
true
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.js
challenge6/finished/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.js
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
true
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/test/index.js
challenge6/finished/node_modules/browserify/node_modules/umd/test/index.js
var assert = require('assert') var umd = require('../') var src = umd('sentinel-prime', 'return "sentinel"') var namespacedSrc = umd('sentinel.prime', 'return "sentinel"') var multiNamespaces = umd('a.b.c.d.e', 'return "sentinel"') describe('with CommonJS', function () { it('uses module.exports', function () { v...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/umd/bin/cli.js
challenge6/finished/node_modules/browserify/node_modules/umd/bin/cli.js
#!/usr/bin/env node var read = require('fs').createReadStream var write = require('fs').createWriteStream var umd = require('../') var args = process.argv.slice(2) var help = false var commonJS = false args = args.filter(function (arg) { if (arg === '-h' || arg === '--help') { help = true return false }...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/util.js
challenge6/finished/node_modules/browserify/node_modules/util/util.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/support/isBuffer.js
challenge6/finished/node_modules/browserify/node_modules/util/support/isBuffer.js
module.exports = function isBuffer(arg) { return arg instanceof Buffer; }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/support/isBufferBrowser.js
challenge6/finished/node_modules/browserify/node_modules/util/support/isBufferBrowser.js
module.exports = function isBuffer(arg) { return arg && typeof arg === 'object' && typeof arg.copy === 'function' && typeof arg.fill === 'function' && typeof arg.readUInt8 === 'function'; }
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/node/inspect.js
challenge6/finished/node_modules/browserify/node_modules/util/test/node/inspect.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/node/log.js
challenge6/finished/node_modules/browserify/node_modules/util/test/node/log.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/node/debug.js
challenge6/finished/node_modules/browserify/node_modules/util/test/node/debug.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/node/util.js
challenge6/finished/node_modules/browserify/node_modules/util/test/node/util.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/node/format.js
challenge6/finished/node_modules/browserify/node_modules/util/test/node/format.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/browser/inspect.js
challenge6/finished/node_modules/browserify/node_modules/util/test/browser/inspect.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/util/test/browser/is.js
challenge6/finished/node_modules/browserify/node_modules/util/test/browser/is.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/inherits/inherits_browser.js
challenge6/finished/node_modules/browserify/node_modules/inherits/inherits_browser.js
if (typeof Object.create === 'function') { // implementation from standard node.js 'util' module module.exports = function inherits(ctor, superCtor) { ctor.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, wr...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/inherits/test.js
challenge6/finished/node_modules/browserify/node_modules/inherits/test.js
var inherits = require('./inherits.js') var assert = require('assert') function test(c) { assert(c.constructor === Child) assert(c.constructor.super_ === Parent) assert(Object.getPrototypeOf(c) === Child.prototype) assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) assert(c instance...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/inherits/inherits.js
challenge6/finished/node_modules/browserify/node_modules/inherits/inherits.js
module.exports = require('util').inherits
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/commondir/index.js
challenge6/finished/node_modules/browserify/node_modules/commondir/index.js
var path = require('path'); module.exports = function (basedir, relfiles) { if (relfiles) { var files = relfiles.map(function (r) { return path.resolve(basedir, r); }); } else { var files = basedir; } var res = files.slice(1).reduce(function (ps, file) { ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/commondir/test/dirs.js
challenge6/finished/node_modules/browserify/node_modules/commondir/test/dirs.js
var assert = require('assert'); var commondir = require('../'); exports.common = function () { assert.equal( commondir([ '/foo', '//foo/bar', '/foo//bar/baz' ]), '/foo' ); assert.equal( commondir([ '/a/b/c', '/a/b', '/a/b/c/d/e' ]), '/a/b' ); assert.equal( ...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/commondir/example/base.js
challenge6/finished/node_modules/browserify/node_modules/commondir/example/base.js
var commondir = require('commondir'); var dir = commondir('/foo/bar', [ '../baz', '../../foo/quux', './bizzy' ]) console.log(dir);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/commondir/example/dir.js
challenge6/finished/node_modules/browserify/node_modules/commondir/example/dir.js
var commondir = require('commondir'); var dir = commondir([ '/x/y/z', '/x/y', '/x/y/w/q' ]) console.log(dir);
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/querystring/decode.js
challenge6/finished/node_modules/browserify/node_modules/querystring/decode.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/querystring/index.js
challenge6/finished/node_modules/browserify/node_modules/querystring/index.js
'use strict'; exports.decode = exports.parse = require('./decode'); exports.encode = exports.stringify = require('./encode');
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/querystring/encode.js
challenge6/finished/node_modules/browserify/node_modules/querystring/encode.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false
kwhinnery/node-workshop
https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge6/finished/node_modules/browserify/node_modules/querystring/test/index.js
challenge6/finished/node_modules/browserify/node_modules/querystring/test/index.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
javascript
MIT
594bfc6bebf38d34a36b797e48f6f6d4600da5e4
2026-01-05T03:35:40.007163Z
false