View howhowhow.markdown

I have a big fat object that is structured like this (using CJS format to remove all ambiguity):

// big-fat-package.js
module.exports = {
  runtime: {
    compile: function() {},
    partials: {
      'non-valid-identifier-property-0': function() {},
      'non-valid-identifier-property-1': function() {},
View index.js
var Benchmark = require('benchmark');
var suite = new Benchmark.Suite;
global.moutdifference = require('mout/array/difference');
global.assert = require('assert');
function setup() {
destArr = [];
View index.js
var undo = require('tap-browser-color')();
var test = require('tape');
var difference = require('mout/array/difference');
function diffN(out, a, b, n) {
out.push.apply(out, a);
for (var i = 2; i < arguments.length; i++) {
var arr = arguments[i];
for (var k = 0; k < arr.length; k++) {
var idx = out.indexOf(arr[k]);
View index.js
var nlp = require('nlp_compromise/src/methods/tokenization/sentence');
console.log(nlp('Working with and without his Mercury Music Prize-winning group <a href="spotify:artist:3iOvXCl6edW5Um0fXEBRXy">The M. Ward xx</a>, Jamie xx established himself as a forward-thinking beatmaker and producer. Born Jamie Smith in Putney, London, he began his musical career playing the drums, but after realizing he couldn\'t use his innovation skills on the instrument, he instead turned to the \'80s Media Production Centre, which programmed his computer-based sounds onto electronic percussion pads, allowing him to play both live and in the studio. In 2008, he teamed up with former school friends Oliver Sim, Romy Madley Croft, and Baria Qureshi to form <a href="spotify:artist:3iOvXCl6edW5Um0fXEBRXy">the xx</a>, who signed to XL subsidiary Young Turks a year later and went on to record one of the most well-received albums of the decade with their self-titled debut. As well as reworking his own band\'s tracks, he also became a so
View index.js
var jug = require('image-juggler');
var input = document.createElement('input');
input.type = 'file';
var output = document.createElement('canvas');
var outputCtx = output.getContext('2d');
var status = document.createElement('p');
document.body.appendChild(status);
document.body.appendChild(input);
View index.js
var jug = require('image-juggler');
var Clusterer = require('ncolorpalette-clusterer');
var input = document.createElement('input');
input.type = 'file';
var output = document.createElement('canvas');
var outputCtx = output.getContext('2d');
var status = document.createElement('p');
document.body.appendChild(status);
View vash.typescript.js
This file has been truncated, but you can view the full file.
var Parser = require('vash/lib/parser');
var Lexer = require('vash/lib/lexer');
var codegen = require('vash/lib/codegen');
var ts = require('typescript');
var str = "@{\nvar x: string = 'string'; \n}";
var tpl = compileTS(str);
console.log(JSON.stringify(tpl))
function compileTS(markup, opts) {
View index.js
require('tap-browser-color')();
var test = require('tape');
test('it flattens!', function(t) {
var input = {
users: [
{ name: 'name1', id: 1, image: { '64x64': 'http://1' } },
{ name: 'name2', id: 2, image: { '64x64': 'http://2' } }
],
errors: [ new Error('err1') ],
View flatten_and_test.js
require('tap-browser-color')();
var test = require('tape');
test('it flattens!', function(t) {
var input = {
users: [
{ name: 'name1', id: 1, image: { '64x64': 'http://1' } },
{ name: 'name2', id: 2, image: { '64x64': 'http://2' } }
],
errors: [ new Error('err1') ],
View index.js
var debug = require('debug')
var lg = debug('vash:TS');
var Parser = require('vash/lib/parser');
var Lexer = require('vash/lib/lexer');
var codegen = require('vash/lib/codegen');
var TypeScript = require('typescript');
console.log('type?', TypeScript)
function compileTS(markup, options) {