NPM in the console makes the npm package available in the browser's developer tools console. This is made as a bookmarklet.
- Register the contents of the /dist/index.bookmarklets file as the address of the bookmark.
- Launch the console.
- Click Bookmarks in NPM in the console.
- Enter the desired NPM package.
- Use when finished loading.
- Run the command below. (nodejs must be installed)
npx bookmarklet src/index.js dist/index.js
- Use the bookmarklet file in dist/index.js.