{"bugs":{"url":"https://github.com/kuitos/import-html-entry/issues"},"dist":{"shasum":"fe3f2a99313feeee119943459811a4146889d60c","tarball":"https://registry.npmjs.org/import-html-entry/-/import-html-entry-1.6.0-2.tgz","fileCount":10,"integrity":"sha512-Wsb4e9jKJLojeDcbkGPBBeSKPJyLh7FlQYNmITGv3IT4EbUZS1XyFxVqxx3J0AYVEOxumIIjO5n9XbhzmlmYug==","signatures":[{"sig":"MEUCIQC1//sRNp32tRIod5+IVPTtFgI1OieplFznS8wmVHpeNwIgaFq7PKvrBI0kANP6RYbZbFNojBwZe4RtIjSdV2Z88s0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJek+yWCRA9TVsSAnZWagAAbZcQAJFBF+APD20yQlph+m/F\nDPeDoWLDe35WYyGM8lM8O8cWw7FvzTbh8pJcnfdhgIpW+jugDnQlfdvK5fDh\n2xFWF7bZGTYtk3dN7SxHgX9XLJgbslPni/PpRuzrjklSRDrNYsXRg+aPlDLN\nl6pj2pe7LkiOL5CQ5VIkO+NxaqI7jlzJnkS+i26coMrLPl8E+aPfoJJ2DIfo\n/8kwYGAH16ppRd4ekKtVF6MV/7WMXUDEXgT/45RL+1S3V8yNC4kRglzl7xJH\n5My7kIS4hHxvWkGk99M05/sOdwkfRYpFpwqyIAJnuso6X9fqmV9YeDxRQwHQ\n6Siz+sb57aiCAW48Neo+jvyElKUsPyEglpqI+3Wc/Yz3Pm11/qCpqNKAFemY\nVXWv1dfsMWGARvmTah6MfDIDquzj93mjKlJ05LYwMEqqOTX64kBoNwD5X3Lo\np0Pd1TQJ+60N+zkywCaAUucVuDLK8YNVVCo3cuDoQ+As2MRe/gazOsrzbW1j\nih/yoOoCeBf0ntmhUIRhEQnrf0nxlFN8oE/If9o/Ij/FLzPPPlASQvrD4OLu\nKeS6NjTdsir2JxUOXPjUzSg/3fS+xlA6Est4ftXOX0bvpKiRZDyJ5EkF8Tdc\nllhryQZfdHpK3nNoPD2Y5iGUr5xxbL+A3looYr4BuLgkW4FAjRwyP/0oyqHK\nLi9b\r\n=3YQm\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":"82a2de2594edbcbf891027de39650cb8bf80a3e7","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.14.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.2","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-2_1586752662144_0.6497165401411495","host":"s3://npm-registry-packages"},"_id":"import-html-entry@1.6.0-2","version":"1.6.0-2"}