Created
August 6, 2016 04:41
-
-
Save seangenabe/abf8555a5e709f6fc88fda92abf1516c to your computer and use it in GitHub Desktop.
sample code for yo-yoify bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>`") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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