Node.js / npm - anyway to tell if a package is pure JS or not?

前端 未结 3 1736
北海茫月
北海茫月 2021-01-03 00:16

I\'ve noticed that in trying to get seemingly simple node packages to install with npm (e.g. nerve, a \"micro-framework\") I often run into some form of dependency pain. Aft

3条回答
  •  伪装坚强ぢ
    2021-01-03 00:52

    Node is not "everything javascript" , since one way to extend node core is to write c/c++ plugins.

    So Node is more a javascript wrapper around c/c++ modules using V8.

    How could you write efficient database drivers in pure javascript for instance ? it would be possible but slow.

    as for the filters , it is up to the author to document his package. there is no automatic filter.

提交回复
热议问题