🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

jmapserver-ng-core

Package Overview
Dependencies
Maintainers
7
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jmapserver-ng-core

K2 Geospatial - JMap Server NG Core library implementation

latest
7_Lima_HF13
npmnpm
Version
2.13.0
Version published
Weekly downloads
53
-87.84%
Maintainers
7
Weekly downloads
 
Created
Source

after initial checkout :

duplicate the .npmrc.example file, rename the copy to .npmrc and configure values inside that file.

The first time, install dependencies :

npm i

To start the Core library :

npm start

A dev example page is accessible at this location : http://localhost:8081

To access a different project : http://localhost:8081?ngProjectId=XXX

The JS entry file is accessible at this location : http://localhost:8081/build/index.js

When code is changed, it's automatically built and the web page refresh by its own (thanks webpack dev server).

Install the following vs-code extensions :

- https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
- "Prettier - Code formatter" extention (Author : Esben Petersen)

Node version (nvm)

This repository uses Node.js version defined in .nvmrc (18).

Use nvm to switch automatically when changing directory and log the switch in terminal.

For zsh (~/.zshrc):

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

nvm_auto_use() {
  local nvmrc_path target current
  nvmrc_path="$(nvm_find_nvmrc)"
  [ -z "$nvmrc_path" ] && return

  target="$(cat "$nvmrc_path")"
  current="$(nvm current)"

  if [ "$(nvm version "$target")" != "$current" ]; then
    echo "[nvm] switching to $target for $(dirname "$nvmrc_path")"
    nvm use "$target" || nvm install "$target"
  fi
}

autoload -U add-zsh-hook
add-zsh-hook chpwd nvm_auto_use
nvm_auto_use

For bash (~/.bashrc):

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

nvm_auto_use() {
  local nvmrc_path target current
  nvmrc_path="$(nvm_find_nvmrc)"
  [ -z "$nvmrc_path" ] && return

  target="$(cat "$nvmrc_path")"
  current="$(nvm current)"

  if [ "$(nvm version "$target")" != "$current" ]; then
    echo "[nvm] switching to $target for $(dirname "$nvmrc_path")"
    nvm use "$target" || nvm install "$target"
  fi
}

__NVM_AUTO_LAST_PWD=""
nvm_auto_use_prompt_hook() {
  if [ "$PWD" != "$__NVM_AUTO_LAST_PWD" ]; then
    __NVM_AUTO_LAST_PWD="$PWD"
    nvm_auto_use
  fi
}
PROMPT_COMMAND="nvm_auto_use_prompt_hook${PROMPT_COMMAND:+; $PROMPT_COMMAND}"

nvm_auto_use

Reload your shell after updating config:

source ~/.zshrc
source ~/.bashrc

FAQs

Package last updated on 04 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts