Can I distribute non javascript files via npm?

萝らか妹 提交于 2021-01-27 13:41:22

问题


Npm is an amazing tool if you use it with typescript or javascript. But as far as I know, It looks like it is possible to distribute any kind of project or language via node / npm.

For example, imagine that i created a php phar file that contains some library. Could i use npm to distribute it as a package?

Or imagine that i have a css file containing a library of visual styles. Would it be accepted to distribute all those css files via npm, knowing that no javascript code would be present in the package?

The main question is this: Is it allowed to distribute non javascript projects via npm?

thanks

来源:https://stackoverflow.com/questions/47135991/can-i-distribute-non-javascript-files-via-npm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!