Skip to content

Instantly share code, notes, and snippets.

@seangenabe
Created August 6, 2016 04:41
Show Gist options
  • Save seangenabe/abf8555a5e709f6fc88fda92abf1516c to your computer and use it in GitHub Desktop.
Save seangenabe/abf8555a5e709f6fc88fda92abf1516c to your computer and use it in GitHub Desktop.
sample code for yo-yoify bug
const yoyoify = require('yo-yoify')
const { PassThrough } = require('stream')
let stream = new PassThrough()
stream.pipe(yoyoify()).pipe(process.stdout)
stream.end("const yo = require('yo-yo'); yo`<label for='abc'></label>`")
const yo = require('yo-yo'); (function () {
var ac = require('[REDACTED]\\test\\node_modules\\yo-yoify\\lib\\appendChild.js')
var bel0 = document.createElement("label")
bel0.setAttribute("htmlFor", "abc")
return bel0
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment