# `NPM.Compiler`
[🔗](https://github.com/elixir-volt/npm_ex/blob/v0.7.4/lib/npm/compiler.ex#L1)

Mix compiler that ensures npm packages are installed.

Add to your project's compilers list to automatically install
npm dependencies during `mix compile`:

    def project do
      [
        compilers: [:npm | Mix.compilers()],
        ...
      ]
    end

Checks if `npm.lock` exists and `node_modules/` is populated.
Only runs the full install if needed.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
