是否可以使用node.js开发Google Chrome扩展? [英] Is it possible to develop Google Chrome extensions using node.js?

查看:1060
本文介绍了是否可以使用node.js开发Google Chrome扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用node.js开始开发Google Chrome扩展程序(因为我已经在node.js中编写了文本到歌曲脚本,并且希望将其变为Chrome扩展程序。)解决这个问题最直接的方法是什么?

解决方案

实际上是这样。看看这个开发者现场演出。这也是我一直在寻找的,这会对你有所帮助。

这会将你的节点应用程序捆绑到你的浏览器中。
以下是回购



编辑:



我注意到,我的这个旧答案不时得到upvotes(谢谢大家)。

但是现在我更愿意使用网络应用程序,而不是将应用程序捆绑到许多平台,比如Chrome商店等等。
您可以检查谷歌的帖子 here 此处指示某些方向。

在实践中,我建议你开始使用服务工作者和渐进的东西来构建具有离线功能的渐进式Web应用程序(PWA)。



现在网络上有大量资源,如果您按照正确的方式进行操作,您可以提供更丰富的应用程序,以实现更广泛的受众群体。



再次感谢,并且编码很好。


I'd like to start developing Google Chrome extension using node.js (since I've already written a "text-to-song" script in node.js, and I'd like to turn it into a Chrome extension.) What would be the most straightforward way of approaching this problem?

解决方案

Actually it is. Look at this Developers Live-cast. This is something I've been looking for as well, and this would help you.

This brings your node applications bundled to your browser. Here is the repo!

EDIT:

I've noticed that this old answer of mine keeps getting upvotes now and then (thank you all).

But nowadays I'm more an advocate of using web apps instead of bundling your application into many platforms like the chrome store or whatever. You can check the google's post here and here indicating some directions.

In practice I advise for you to start building a progressive web app (PWA) with offline capabilities using service worker and progressive stuff.

There are plenty of resources around the web nowadays and you can offer a much richer application that may achieve a much broader audience if you do it the right way.

Thanks again, and good coding.

这篇关于是否可以使用node.js开发Google Chrome扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆