New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-pom-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pom-parser

The XML parser for pom.xml that is lighting fast

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js pom.xml Parser

Build Status

Parsing Java's pom.xml with an extremely fast XML EXPAT parser.

Installation

npm install --save node-pom-parser

Features

0.1.0: Just reads the groupId, artifactId and version.

Use

  • Printing the object
var pom = ext.parsePom({ filePath: __dirname + "/pom.xml"});

console.log(pom);

It should print the object:

{ timers: { load: '0.056185ms', parse: '0.505887ms' },
  artifactId: 'tynamo-parent',
  groupId: 'org.tynamo',
  version: '0.0.9' }

  • Printing the string value
var pom2 = ext.parsePom({ filePath: __dirname + "/pom.xml", format: "text"});
console.log(pom2);

It should print the string format

org.tynamo:tynamo-parent:0.0.9

Contributing

Pull requests are welcome!

Keywords

FAQs

Package last updated on 24 Nov 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc