{"bugs":{"url":"https://github.com/kuitos/import-html-entry/issues"},"dist":{"shasum":"d38115095788273d8eb2eb91fd60be570cab1176","tarball":"https://registry.npmjs.org/import-html-entry/-/import-html-entry-1.6.0-0.tgz","fileCount":10,"integrity":"sha512-6DZRJsMsMsbJw2iZr+PLapia0E/Ey8Czi43GLjjz1TgVlmqGsoOMnflInsVEZWiK6TYXjwcsaNZlZkLkT3j/6A==","signatures":[{"sig":"MEUCIQCuiIvrm6mtpxdtOp/Jdq3tc5MBWF6SFukaGKDUm6AWTAIgYPba2VJQ2tkfQtRFjTjFoErnlOvPAmJBDJ5bj2Ku9ig=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45132,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegLoRCRA9TVsSAnZWagAAZxIP/RuxRyG03PS43ww6Jc59\naNd+y62tJx64RzenmI0vIy/OadUH6+YlLwzfmuaAhm23LBS6WXCZhfOypIxK\nLugnjXeyBBrvBckAT31/pYcWFJgrQra+NqB7s7lxXVlGXQ7Wz0C5gHkJzk8y\n2tCd1D+JToY0IGp2yZLMBVu5wYyJWkuD1A2/J4BSad11AhHEFo198B2f/oAG\n7CiEv+N71rKBLbynH5s5LkCQqCYBoMPBX5nuGuX7DKVQM9kQonWnHn2GlFxr\ndUno+MfxHJjSbr3I4dQMfzu+MxOnL/z17UFc1pXlmNUzw6ktZ9+p7qQeW/7x\nIkFfSd5Gj9Ht2XSBSE7/puJhGSTv5cb31D1AIqswJauD6G3g4L0oWN4GK2/q\nDtmARgFMjPuDHFwOt6mwwS6z8mBtx9vPSxNu/wMBMmunKM1lNkuvFBpKUad9\nkV7iNRxkH2f4lQr5X2jJ/yL0gmr5Ldh6rYfRGpgypSyEEMJdLmK0vf1EvERv\nHtgdvvI65cZJmagVA3Pbi+flXCdFEiAhn95zHLcPqSIEQcqlmC83DCIiDoWp\nYhE8NLqjvn+4NK+8i9Pwf2snzrYiBI5PHlczomGUyxsiDWxNrY+x4KS+zBlt\nf/fqLDaDy2dXWwybKphagj4g5F9LV/ZQasE1ITyDOi2EpK2APpc4ICALq+7h\n+GUW\r\n=80tL\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":"9dc7a32a56bb1b4ee41ee9f5c5ebe431ab9954ac","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-0_1585494544950_0.6022870784602208","host":"s3://npm-registry-packages"},"_id":"import-html-entry@1.6.0-0","version":"1.6.0-0"}