NPM Proxy Adapter

Parent POM of Artipie

License

License

MIT
Categories

Categories

Artipie Build Tools Distribution
GroupId

GroupId

com.artipie
ArtifactId

ArtifactId

npm-proxy-adapter
Last Version

Last Version

0.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

NPM Proxy Adapter
Parent POM of Artipie
Project URL

Project URL

https://github.com/artipie/npm-proxy-adapter
Project Organization

Project Organization

jcabi.com
Source Code Management

Source Code Management

https://github.com/artipie/npm-proxy-adapter

Download npm-proxy-adapter

How to add to project

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

Dependencies

compile (6)

Group / Artifact Type Version
com.artipie : asto jar 0.17
com.artipie : http jar 0.8
com.artipie : vertx-server jar 0.3
io.vertx : vertx-web-client jar 3.8.5
com.amihaiemil.web : eo-yaml jar 3.1.0
com.jayway.jsonpath : json-path jar 2.4.0

provided (1)

Group / Artifact Type Version
com.google.code.findbugs : annotations jar 3.0.1

runtime (2)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.8.0-alpha2
log4j : log4j jar 1.2.17

test (8)

Group / Artifact Type Version
commons-io : commons-io jar 2.6
org.mockito : mockito-core jar 3.3.3
org.mockito : mockito-junit-jupiter jar 3.3.3
org.skyscreamer : jsonassert jar 1.5.0
org.testcontainers : testcontainers jar 1.13.0
org.testcontainers : junit-jupiter jar 1.13.0
org.testcontainers : mockserver jar 1.13.0
org.mock-server : mockserver-client-java jar 5.5.4

Project Modules

There are no modules declared in this project.

EO principles respected here DevOps By Rultor.com We recommend IntelliJ IDEA

Build Status Javadoc License Hits-of-Code Maven Central PDD status

npm-proxy-adapter

Usage

This is the dependency you need:

<dependency>
  <groupId>com.artipie</groupId>
  <artifactId>npm-proxy-adapter</artifactId>
  <version>[...]</version>
</dependency>

How it works?

After initial setup of the proxy repository, it can be used to work with NPM. NPM registry to install package from can be specified explicitly npm install --registry=https://artipie.com/npm-proxy-registry <package_name> or setup as default with npm set registry https://artipie.com/npm-proxy-registry command.

NPM sends HTTP requests to specified URL and adapter processes them. It proxies request to the remote repository previously setup. After getting artifact, it caches received data and transform before sending it back to client. The next request will not require remote repository call - the cached data will be used.

Technical details

Detailed explanation about used algorithms and protocols can be found here: implementation.md

How to contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Maven build:

$ mvn clean install -Pqulice

To avoid build errors use Maven 3.2+.

com.artipie

Artipie

Binary Artifact Management Toolkit

Versions

Version
0.1.1
0.1