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

epp2json

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epp2json

epp <=> json

  • 0.9.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

epp2json

epp <=> json

Install

$ npm install epp2json

Usage

function exception(SyntaxError, e) {
    if(!(e instanceof SyntaxError))
        throw e;
    console.log(e);
}
const xml = require('epp2json/xml');

try {
    var _epp = xml.parse(_xml);
}
catch(e) {
    exception(xml.SyntaxError, e);
}

try {
    var _xml = xml.stringify(_epp);
}
catch(e) {
    exception(xml.SyntaxError, e);
}
const convert = require('epp2json');

try {
    var _json = convert.parse(_epp);
}
catch(e) {
    exception(convert.SyntaxError, e);
}

try {
    var _epp = convert.stringify(_json);
}
catch(e) {
    exception(convert.SyntaxError, e);
}

License

GPL © May xiaoya zhang

Keywords

FAQs

Package last updated on 26 Nov 2019

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