
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@simwrapper/gmns
Advanced tools
GMNS: the General Modeling Network Specification. Load GMNS networks from cmdline or in the browser. Converts GMNS to GeoJSON.
GMNS is the "General Modeling Network Specification." GMNS itself is supported by the Zephyr Transport Foundation and is being developed here:
This is a JavaScript/TypeScript implementation of a GMNS reader. It allows you to read GMNS networks from your JavaScript code and convert them to a standard GeoJSON object usable anywhere that GeoJSON is spoken!
Load GMNS networks:
Convert GMNS:
As a courtesy, this package also contains a Python script which converts a MATSIM network.xml file into GMNS format. To convert your MATSIM network.xml to a zipped GMNS network file, first run:
python3 create-gmns-network.pynpm install @simwrapper/gmns
// ESM
import GMNS from '@simwrapper/gmns'
// CommonJS
const GMNS = require('@simwrapper/gmns')
const network = GMNS.load('mynetwork.gmns.zip')
const geojson = GMNS.toGeojson(network)
console.log(geojson) // Output: { "type": "FeatureCollection", "features": [...]}
Load a GMNS file from a path or from an already-loaded Blob object.
Returns a GMNSNetwork object, which contains
path the file path from which the network was loadedconfig parameters loaded from config.csvt object which contains all of the .csv tables that were found in the zip file or folder.Parameters:
path Required. can be a valid .zip file, a valid folder path containing the various CSV files, or sometimes a path directly to the GMNS config.csv file itself (but this only works with certain web servers). Even if you pass in the data directly (see below), this path string is used for identifying the dataset.
data Optional. Pass in an ArrayBuffer, Blob object, Uint8Array, or Promise to one of those datatypes with the .zip file content. The data will be used directly instead of loading from the net or disk.
Returns a GeoJSON-compatible object with the network content. Currently only the nodes and link tables are read, and optionally if a geometry table exists, then the link geometries will also be present.
MIT
FAQs
GMNS: the General Modeling Network Specification. Load GMNS networks from cmdline or in the browser. Converts GMNS to GeoJSON.
We found that @simwrapper/gmns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.