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

crack

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

crack

Really simple XML parsing

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Crack

[![Build Status] status] travis

Really simple XML parsing with libxmljs libxmljs.

Installation

npm install crack

Usage

crack = require 'crack'

data = '<?xml version="1.0" encoding="UTF-8"?>' +
       '<Items>' +
       '<Item>' +
       '<ASIN>0816614024</ASIN>' +
       '<ItemAttributes>' +
       '<Creator Role="Author">Gilles Deleuze</Creator>' +
       '<Creator Role="Contributor">Felix Guattari</Creator>' +
       '<Title>Thousand Plateaus</Title>' +
       '</ItemAttributes>' +
       '</Item>' +
       '</Items>'
doc = crack data

# Convert entire document to a JavaScript object.
console.dir doc.toJS()

# Drop down to a node.
doc.find 'Creator', (creator) ->
  console.dir creator

FAQs

Package last updated on 20 Feb 2012

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