{"bugs":{"url":"https://github.com/kuitos/import-html-entry/issues"},"dist":{"shasum":"6b358fc7643382801cb1a1b597242d2797ba9fb9","tarball":"https://registry.npmjs.org/import-html-entry/-/import-html-entry-1.6.0-1.tgz","fileCount":10,"integrity":"sha512-Ge6DRte3TMjxFr1uDNLy7QbvDuwg0PgPGI9FApenrjv1GsfJLKom2AUKXUDuJWT6ORDRRi80HC5bBU3HnCgzCw==","signatures":[{"sig":"MEUCIQD3AnzkG4r3/U/5JytsDRg0sTMpUyUVQvWSzVcXGL12EAIgBsHKu1X6a1T/tF9TS10c2KSg2KbWNUmJ3DP8k7stirE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44760,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeg3i4CRA9TVsSAnZWagAA9z8P/j3WbaDysMbi6oW5EGQV\nf9YFv4MmW4bJT15/SbSlc7ZId5gHeX89Qgtn7+sR01ijH+FUWW5mqw1255PJ\nsClZFUj5GA4mJXOJDZANKjwhiWEWLUUhe9ZzTojFSqS7DfIQFJWm9tY9dHBY\n/ISP12NeTrJDsfAR5YuU71+OxOePzYlyJPD2f390x933QfnS2GZk0VRXpGSM\nT9Cm2ZnLCmM5/li3typnGoh8x4+hzu1tsRy9TKTM0Yv7bwLgbLsvY6hblWZn\nfdVzkuGwNF4OA7ChtMHC25vLi4yDExHu1LuHKP49HOQandf4szmzvXAKWrtm\nmcIYGDdHK0OFls+9eusFwnvZHVZ+SeHr/HkZ1ie5NDor5Psser6cIC7v8s80\nCefr9wY/UW4x1V73OHedmQ8H3PGMbGLoRmlKQMVzUOss3MQSb9+y9f7AJWo7\nTKfjZ3z4qcwiBZtPjTxEZm9fYrFfHV4/dN3yuXff99YOxHjz2YPrwIDx7zXL\nfOLWC8g4jrKuankS6v0ckn0+ZaebbOt3f1en373GeugAA9AQxLYki8xkaFOs\nPydqh58GtMXb5BCEYR0/ZAUX0Qm+YHUBipaW5nNZ7s7nlnJ9i3jBGkCEmOpe\nCQM/8yoJkCSItRHYlVGAUtm9XHEARiRIbQucB68H3OAQJGBjxtuiJY/qi6T6\nIfy+\r\n=29Dy\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"globals":{"process.env.NODE_ENV":"test"},"testURL":"http://test.com/path/","testMatch":["<rootDir>/src/**/__tests__/**/*.js"],"setupFiles":["./test/setup.js"],"testPathIgnorePatterns":["/node_modules/","/fixtures/"],"coveragePathIgnorePatterns":["/node_modules/","/__tests__/","/dist/"]},"main":"./lib/index.js","name":"import-html-entry","types":"./index.d.ts","author":{"name":"Kuitos"},"module":"./esm/index.js","readme":"# import-html-entry\nTreats the index html as manifest and loads the assets(css,js), and get the entry script exports.\n\n```html\n<!-- subApp/index.html -->\n\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <title>test</title>\n</head>\n<body>\n\n<!-- mark the entry script with entry attribute -->\n<script src=\"https://unpkg.com/mobx@5.0.3/lib/mobx.umd.js\" entry></script>\n<script src=\"https://unpkg.com/react@16.4.2/umd/react.production.min.js\"></script>\n</body>\n</html>\n```\n\n```js\nimport importHTML from 'import-html-entry';\n\nimportHTML('./subApp/index.html')\n    .then(res => {\n        console.log(res.template);\n\n        res.execScripts().then(exports => {\n            const mobx = exports;\n            const { observable } = mobx;\n            observable({\n                name: 'kuitos'\n            })\t\n        })\n});\n```\n","gitHead":"c40f820868c859dac6b9c6b2a6e14ed190e8a5e2","license":"MIT","scripts":{"lint":"npm test","test":"jest --no-cache","build":"npm run build:lib && npm run build:esm","prepush":"npm run lint","release":"np --no-cleanup --yolo --no-publish --any-branch","build:esm":"rm -fr ./esm && babel ./src --out-dir ./esm --ignore 'src/**/__tests__/**/*.js'","build:lib":"rm -fr ./lib && BABEL_ENV=lib babel ./src --out-dir ./lib --ignore 'src/**/__tests__/**/*.js'","prepublishOnly":"npm run build"},"_npmUser":{"name":"kuitos","email":"kuitos.lau@gmail.com"},"homepage":"https://github.com/kuitos/import-html-entry#readme","keywords":["html","importer"],"repository":{"url":"git+https://github.com/kuitos/import-html-entry.git","type":"git"},"_npmVersion":"6.13.4","description":"import html and get the exports of entry","directories":{"example":"example"},"maintainers":[{"name":"kuitos","email":"kuitos.lau@gmail.com"}],"sideEffects":false,"_nodeVersion":"12.16.1","browserslist":["> 1%","last 6 versions","not ie <= 8"],"dependencies":{"@babel/runtime":"^7.7.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"^5.0.3","jest":"^24.9.0","husky":"^1.3.1","webpack":"^4.17.1","@babel/cli":"^7.2.3","@babel/core":"^7.2.2","webpack-cli":"^3.1.0","babel-loader":"^8.0.2","@babel/preset-env":"^7.0.0","@babel/plugin-transform-runtime":"^7.0.0","@babel/plugin-proposal-optional-chaining":"^7.8.3"},"_npmOperationalInternal":{"tmp":"tmp/import-html-entry_1.6.0-1_1585674424311_0.25362711363071244","host":"s3://npm-registry-packages"},"_id":"import-html-entry@1.6.0-1","version":"1.6.0-1"}