Skip to content
This repository was archived by the owner on Apr 11, 2022. It is now read-only.

Repository files navigation

npm

Build Status

This is a JVM wrapper around the Node Package Manager (NPM). The NPM that is run is the real NPM. The JS Engine project is used to execute NPM using Node itself.

A WebJar is used to download the NPM source files.

Some sample usage from Scala:

valengine= system.actorOf(Node.props(), "engine")
valto=newFile(newFile("target"), "webjars")
valnpm=newNpm(engine, NpmLoader.load(to, Main.getClass.getClassLoader))
for (
result <- npm.update() // Perform an "npm update"
) {
println(s"status\n======\n${result.exitValue}\n")
println(s"output\n======\n${newString(result.output.toArray, "UTF-8")}\n")
println(s"error\n=====\n${newString(result.error.toArray, "UTF-8")}\n")

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages