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

前端 未结 3 1735
北海茫月
北海茫月 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 01:02

    The first solution doesn't tell you if a dependency makes the package impure or not. Much better to search for gyp generated output:

    find node_modules/ | grep binding.gyp || echo pure
    

提交回复
热议问题