native-messaging
markdown-viewer
native-messaging | markdown-viewer | |
---|---|---|
6 | 1 | |
47 | 974 | |
- | - | |
0.0 | 7.5 | |
11 months ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
native-messaging
-
JavaScript Standard Input/Output: Unspecified
// Bun Native Messaging host // guest271314, 10-9-2022 async function getMessage() { const { promise, resolve } = Promise.withResolvers(); // https://github.com/simov/native-messaging/blob/8e99d2a345ae94426a502d05aa5d57b966f6bc78/protocol.js let messageLength = 0, bytesWritten = 0, input = [];
-
How would you fix this Node.js bug?
Does not send messages from host to browser equal or to 65536 length.
-
How to read Node.js process.stdin without using process.stdin.on('readable', () => {})?
In Node.js this code https://github.com/simov/native-messaging/blob/master/protocol.js does this
-
process.stdin.read() without using process.stdin.on('readable', ()=.{})
https://github.com/simov/native-messaging/blob/master/nodejs/example.js#:~:text=Raw,Footer
-
Node.js in Chrome extension
Yes. You can utilize Native Messaging. See https://github.com/simov/native-messaging.
-
Why does RSS constantly grow when reading data from a child process and calling process.stdout.write()?
// Node.js Native Messaging host // https://github.com/simov/native-messaging/blob/master/protocol.js // https://github.com/simov/native-messaging/blob/master/nodejs/example.js // Might be good to use an explicit path to node on the shebang line // in case it isn't in PATH when launched by Chrome process.stdin.on('readable', () => { let input = []; let chunk; while ((chunk = process.stdin.read())) { input.push(chunk); } input = Buffer.concat(input); const msgLen = input.readUInt32LE(0); const dataLen = msgLen + 4; if (input.length >= dataLen) { const content = input.slice(4, dataLen); const json = JSON.parse(content.toString()); handleMessage(json); } });
markdown-viewer
-
Blog.txt
I wish Firefox could render AsciiDoc, MarkDown etc. natively. There are extensions, though, e.g. https://github.com/simov/markdown-viewer
What are some alternatives?
better-onetab - :bookmark_tabs: A better OneTab for Chrome :memo: Temporarily removed from firefox :construction: V2 is WIP
Notion-Boost-browser-extension - Chrome & Firefox extension for Notion to add 20+ features like sticky outline, small text & full width by default, hide comments & help button, bolder text etc. Download here: https://gourav.io/notion-boost
node - Node.js JavaScript runtime ✨🐢🚀✨
startpage - A minimal starpage for Chrome and Firefox
firefox-mute-site - Firefox extension that allows to instantly mute/unmute all tabs from a website
vytal-extension - Browser extension to spoof timezone, geolocation, locale and user agent.
omni - The all-in-one tool to supercharge your productivity ⌨️
disable-javascript - Adds the ability to disable JavaScript on specific sites.
node-v0.x-archive - Moved to https://github.com/nodejs/node
passff - zx2c4 pass manager extension for Firefox, Chrome and Opera
proposal-common-minimum-api
civilex - Protect yourself online.