ipfs-shipyard / ipfs-npm-republish

:package: Republish your node project's dependencies to IPFS as a micro-registry
https://www.npmjs.com/package/ipfs-npm-republish
11 stars 4 forks source link

Add an index.html page to each micro-registry with details about the contents. #5

Open andrew opened 5 years ago

andrew commented 5 years ago

If we put an index.html file in the root of the micro-registry directory, when someone loads the registry http://localhost:8080/ipfs/bafybeiflvly...gaobif4 in their browser, it could show some useful information about the contents, for example listing the included packages and their versions and if it's a published module (from package.json rather than package-lock.json) then the main package with it's intended usage.

andrew commented 5 years ago

example code: fs.writeFileSync(tmpDir+'/index.html', 'Hello world!');