{"_id":"undom","_rev":"210407","name":"undom","description":"Minimally viable DOM Document implementation.","dist-tags":{"latest":"0.4.0"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"time":{"modified":"2021-06-03T15:28:40.000Z","created":"2016-07-09T02:38:58.865Z","0.4.0":"2018-06-13T15:35:36.610Z","0.3.3":"2017-03-03T16:05:44.347Z","0.3.2":"2017-03-03T14:30:45.618Z","0.3.1":"2017-02-08T17:39:25.876Z","0.3.0":"2016-07-11T12:23:38.350Z","0.2.1":"2016-07-10T22:29:41.982Z","0.2.0":"2016-07-10T22:22:30.664Z","0.1.0":"2016-07-09T02:38:58.865Z"},"users":{"denji":true,"drewigg":true},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"versions":{"0.4.0":{"name":"undom","amdName":"undom","version":"0.4.0","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"657ed9689b9e1c6ebfefabdc999ce300dba890d3","_id":"undom@0.4.0","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"dist":{"shasum":"8a112c8885bd43845d7b7cf60a8164c9f681e743","size":14826,"noattachment":false,"key":"/undom/-/undom-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.4.0.tgz"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/undom_0.4.0_1528904136219_0.4673489982720873"},"_hasShrinkwrap":false,"publish_time":1528904136610,"_cnpm_publish_time":1528904136610},"0.3.3":{"name":"undom","amdName":"undom","version":"0.3.3","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"f4d70bfd69e782a132a65fd363002dcba6075165","_id":"undom@0.3.3","_shasum":"58d1a2b0ce065975f7fc369c180a0131b625c1c3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"58d1a2b0ce065975f7fc369c180a0131b625c1c3","size":16802,"noattachment":false,"key":"/undom/-/undom-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.3.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undom-0.3.3.tgz_1488557144083_0.23213179386220872"},"directories":{},"publish_time":1488557144347,"_cnpm_publish_time":1488557144347,"_hasShrinkwrap":false},"0.3.2":{"name":"undom","amdName":"undom","version":"0.3.2","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"64a66701a1825bed5efb318e7e253ca63c519a74","_id":"undom@0.3.2","_shasum":"7a8f06a2fa6994c4f52e5e90c4c7171e863736ef","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"7a8f06a2fa6994c4f52e5e90c4c7171e863736ef","size":16353,"noattachment":false,"key":"/undom/-/undom-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.3.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undom-0.3.2.tgz_1488551445361_0.3122804583981633"},"directories":{},"publish_time":1488551445618,"_cnpm_publish_time":1488551445618,"_hasShrinkwrap":false},"0.3.1":{"name":"undom","amdName":"undom","version":"0.3.1","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"cb65458ad7c6a9b2cb23ff099a8a4acddbe34bda","_id":"undom@0.3.1","_shasum":"6284836d9acb9d9ab83b12a7c439c99cd2f95769","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"6284836d9acb9d9ab83b12a7c439c99cd2f95769","size":16317,"noattachment":false,"key":"/undom/-/undom-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.3.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/undom-0.3.1.tgz_1486575563867_0.448426780058071"},"directories":{},"publish_time":1486575565876,"_cnpm_publish_time":1486575565876,"_hasShrinkwrap":false},"0.3.0":{"name":"undom","amdName":"undom","version":"0.3.0","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"8d9e42432901daecf621ec98f3b9091f5344303d","_id":"undom@0.3.0","_shasum":"9e93a7c9a5b36376749ea5a6b954c20ca4c31f02","_from":".","_npmVersion":"3.8.8","_nodeVersion":"5.7.1","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"9e93a7c9a5b36376749ea5a6b954c20ca4c31f02","size":16167,"noattachment":false,"key":"/undom/-/undom-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/undom-0.3.0.tgz_1468239816833_0.08124093268997967"},"directories":{},"publish_time":1468239818350,"_cnpm_publish_time":1468239818350,"_hasShrinkwrap":false},"0.2.1":{"name":"undom","amdName":"undom","version":"0.2.1","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"2273c2bdc5f553f284dd37b828444f0eb8e1b1fa","_id":"undom@0.2.1","_shasum":"c3198ce4c0ee01f411d3e19d9875adefbf43cfc1","_from":".","_npmVersion":"3.8.8","_nodeVersion":"5.7.1","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"c3198ce4c0ee01f411d3e19d9875adefbf43cfc1","size":15551,"noattachment":false,"key":"/undom/-/undom-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undom-0.2.1.tgz_1468189779283_0.1791432446334511"},"directories":{},"publish_time":1468189781982,"_cnpm_publish_time":1468189781982,"_hasShrinkwrap":false},"0.2.0":{"name":"undom","amdName":"undom","version":"0.2.0","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","sinon":"^1.17.4","sinon-chai":"^2.8.0","uglify-js":"^2.6.2"},"gitHead":"416e76b4c9c23c90173db3c9bacb4bc6587e3251","_id":"undom@0.2.0","_shasum":"812e57719a1954be26a651a5cd93159aa5f18f5e","_from":".","_npmVersion":"3.8.8","_nodeVersion":"5.7.1","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"812e57719a1954be26a651a5cd93159aa5f18f5e","size":15554,"noattachment":false,"key":"/undom/-/undom-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/undom-0.2.0.tgz_1468189348234_0.33370207413099706"},"directories":{},"publish_time":1468189350664,"_cnpm_publish_time":1468189350664,"_hasShrinkwrap":false},"0.1.0":{"name":"undom","amdName":"undom","version":"0.1.0","description":"Minimally viable DOM Document implementation.","main":"dist/undom.js","minified:main":"dist/undom.min.js","jsnext:main":"src/undom.js","scripts":{"build":"npm-run-all transpile minify size","transpile":"rollup -c config/rollup.config.js","minify":"uglifyjs $npm_package_main -cm -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map","size":"echo \"gzip size: $(gzip-size $npm_package_minified_main | pretty-bytes)\"","test":"eslint {src,test} && mocha --compilers js:babel-register test/**/*.js","prepublish":"npm-run-all build test","release":"npm run -s build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"eslintConfig":{"extends":"./config/eslint.js"},"babel":{"presets":["es2015-minimal","stage-0"]},"keywords":["dom","document","shim"],"repository":{"type":"git","url":"git+https://github.com/developit/undom.git"},"author":{"name":"Jason Miller","email":"jason@developit.ca"},"license":"MIT","bugs":{"url":"https://github.com/developit/undom/issues"},"homepage":"https://github.com/developit/undom","devDependencies":{"babel-core":"^6.6.4","babel-eslint":"^6.1.1","babel-plugin-transform-object-assign":"^6.8.0","babel-preset-es2015":"^6.9.0","babel-preset-es2015-minimal":"^2.0.0","babel-preset-es2015-minimal-rollup":"^2.0.0","babel-preset-stage-0":"^6.5.0","babel-register":"^6.7.2","buble":"^0.12.4","chai":"^3.5.0","eslint":"^3.0.1","gzip-size-cli":"^1.0.0","mkdirp":"^0.5.1","mocha":"^2.4.5","npm-run-all":"^2.3.0","pretty-bytes-cli":"^1.0.0","rollup":"^0.33.1","rollup-plugin-babel":"^2.4.0","rollup-plugin-buble":"^0.12.1","uglify-js":"^2.6.2"},"gitHead":"74e4721a0b516088b0223fa784c11b784ece0ddf","_id":"undom@0.1.0","_shasum":"64fc2b0583c60d21c5617af9fb3ec2740dc02984","_from":".","_npmVersion":"3.8.8","_nodeVersion":"5.7.1","_npmUser":{"name":"developit","email":"jason@developit.ca"},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dist":{"shasum":"64fc2b0583c60d21c5617af9fb3ec2740dc02984","size":11174,"noattachment":false,"key":"/undom/-/undom-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/undom/download/undom-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/undom-0.1.0.tgz_1468031937532_0.26868242281489074"},"directories":{},"publish_time":1468031938865,"_cnpm_publish_time":1468031938865,"_hasShrinkwrap":false}},"readme":"# undom\n\n[![NPM](https://img.shields.io/npm/v/undom.svg?style=flat)](https://www.npmjs.org/package/undom)\n[![travis-ci](https://travis-ci.org/developit/undom.svg?branch=master)](https://travis-ci.org/developit/undom)\n\n### **Minimally viable DOM Document implementation**\n\n> A bare-bones HTML DOM in a box. If you want the DOM but not a parser, this might be for you.\n>\n> `1kB`, works in Node and browsers, plugins coming soon!\n\n\n[**JSFiddle Demo:**](https://jsfiddle.net/developit/4qv3v6r3/) Rendering [preact](https://github.com/developit/preact/) components into an undom Document.\n\n[![preview](https://i.gyazo.com/7fcca9dd3e562b076293ef2cf3979d23.gif)](https://jsfiddle.net/developit/4qv3v6r3/)\n\n---\n\n\n## Project Goals\n\nUndom aims to find a sweet spot between size/performance and utility. The goal is to provide the simplest possible implementation of a DOM Document, such that libraries relying on the DOM can run in places where there isn't one available.\n\nThe intent to keep things as simple as possible means undom lacks some DOM features like HTML parsing & serialization, Web Components, etc. These features can be added through additional libraries.\n\n\n---\n\n\n## Installation\n\nVia npm:\n\n`npm install --save undom`\n\n\n---\n\n\n## Require Hook\n\nIn CommonJS environments, simply import `undom/register` to patch the global object with a singleton Document.\n\n```js\nrequire('undom/register');\n\n// now you have a DOM.\ndocument.createElement('div');\n```\n\n\n---\n\n\n## Usage\n\n```js\n// import the library:\nimport undom from 'undom';\n\nlet document = undom();\n\nlet foo = document.createElement('foo');\nfoo.appendChild(document.createTextNode('Hello, World!'));\ndocument.body.appendChild(foo);\n```\n\n\n---\n\n\n## Recipe: Serialize to HTML\n\nOne task `undom` doesn't handle for you by default is HTML serialization.  A proper implementation of this would be cumbersome to maintain and would rely heavily on getters and setters, which limits browser support.  Below is a simple recipe for serializing an `undom` Element (Document, etc) to HTML.\n\n\n#### Small & in ES2015:\n\n```js\nElement.prototype.toString = el => this.nodeType===3 ? enc(this.textContent) : (\n\t'<'+this.nodeName.toLowerCase() + this.attributes.map(attr).join('') + '>' +\n\tthis.childNodes.map(serialize).join('') + '</'+this.nodeName.toLowerCase()+'>'\n);\nlet attr = a => ` ${a.name}=\"${enc(a.value)}\"`;\nlet enc = s => s.replace(/[&'\"<>]/g, a => `&#${a};`);\n```\n\n\n#### ES3 Version\n\nThis also does pretty-printing.\n\n```js\nfunction serialize(el) {\n\tif (el.nodeType===3) return el.textContent;\n\tvar name = String(el.nodeName).toLowerCase(),\n\t\tstr = '<'+name,\n\t\tc, i;\n\tfor (i=0; i<el.attributes.length; i++) {\n\t\tstr += ' '+el.attributes[i].name+'=\"'+el.attributes[i].value+'\"';\n\t}\n\tstr += '>';\n\tfor (i=0; i<el.childNodes.length; i++) {\n\t\tc = serialize(el.childNodes[i]);\n\t\tif (c) str += '\\n\\t'+c.replace(/\\n/g,'\\n\\t');\n\t}\n\treturn str + (c?'\\n':'') + '</'+name+'>';\n}\n\nfunction enc(s) {\n\treturn s.replace(/[&'\"<>]/g, function(a){ return `&#${a};` });\n}\n```\n","_attachments":{},"homepage":"https://github.com/developit/undom","bugs":{"url":"https://github.com/developit/undom/issues"},"license":"MIT"}