jvm-npm

WebJar for jvm-npm

Лицензия

Лицензия

Категории

Категории

Github Инструменты разработки Контроль версий
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

github-com-nodyn-jvm-npm
Последняя версия

Последняя версия

0.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

jvm-npm
WebJar for jvm-npm
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/nodyn/jvm-npm

Скачать github-com-nodyn-jvm-npm

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/github-com-nodyn-jvm-npm/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>github-com-nodyn-jvm-npm</artifactId>
    <version>0.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-nodyn-jvm-npm/
implementation 'org.webjars.npm:github-com-nodyn-jvm-npm:0.1.1'
// https://jarcasting.com/artifacts/org.webjars.npm/github-com-nodyn-jvm-npm/
implementation ("org.webjars.npm:github-com-nodyn-jvm-npm:0.1.1")
'org.webjars.npm:github-com-nodyn-jvm-npm:jar:0.1.1'
<dependency org="org.webjars.npm" name="github-com-nodyn-jvm-npm" rev="0.1.1">
  <artifact name="github-com-nodyn-jvm-npm" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='github-com-nodyn-jvm-npm', version='0.1.1')
)
libraryDependencies += "org.webjars.npm" % "github-com-nodyn-jvm-npm" % "0.1.1"
[org.webjars.npm/github-com-nodyn-jvm-npm "0.1.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

jvm-npm

Support for NPM module loading in Javascript runtimes on the JVM. Implementation is based on http://nodejs.org/api/modules.html and should be fully compatible. This, of course, does not include the full node.js API, so don't expect all of the standard NPM modules that depend on it to work. If you want to use existing NPM modules that depend on the Node.js API, consider the not-yet-fully-baked nodyn project. If you are writing your own NPM modules in DynJS, Rhino or Nashorn, this should work just fine.

This module is known to work with DynJS, and has been briefly tested on Nashorn, and should work with Rhino as well.

Usage

Using the global load() functions supplied by DynJS, Nashorn and Rhino, load jvm-npm.js into the global execution context:

dynjs> load('./jvm-npm.js');
dynjs> var x = require('some_module');

Or with Nashorn:

nashorn> load('./jvm-npm.js');
nashorn> var x = require('some_module');

Of course, you will need to ensure that the jvm-npm.js file exists in the current directory.

See the examples directory for simple, runnable usage examples. Again, this will only work out of the box for pure JS NPM modules. Anything that depends on the Node.js API will not work with just this file.

org.webjars.npm
A node.js compatible framework for the JVM

Версии библиотеки

Версия
0.1.1