
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
obvious-import-html
Advanced tools
the middleware to load resources from html
npm install obvious-import-html
or
yarn add obvious-import-html
You can specify the html entry when you use the middleware
import { touchBus } from 'obvious-core'
import importHtml from 'obvious-import-html'
const [bus, isHost] = touchBus()
if (isHost) {
bus.use(importHtml({
'host-app': 'https://cdn.yours.com/host-app/index.html',
'react-app': 'https://cdn.yours.com/react-app/index.html',
'vue-app': 'https://cdn.yours.com/vue-app/index.html'
}))
}
bus.activateApp('host-app')
Or you can use the loadHtml in the next middleware
import { touchBus } from 'obvious-core'
import importHtml from 'obvious-import-html'
const [bus, isHost] = touchBus()
if (isHost) {
bus.use(importHtml()).use(async (ctx, next) => {
const success = await ctx.loadHtml(`https://cdn.yours.com/${ctx.name}/index.html`)
if (!success) {
await next()
}
})
}
bus.activateApp('host-app')
obvious-import-html is MIT Licensed
FAQs
the obvious middleware to load resources from html entry
We found that obvious-import-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.