Socket
Socket
Sign inDemoInstall

@appirio/metadata-builder

Package Overview
Dependencies
3
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appirio/metadata-builder

Module for writing Salesforce Metadata XML from object


Version published
Maintainers
7
Weekly downloads
3

Weekly downloads

Readme

Source

Module for Writing / Formatting Salesforce Metadata XML

For use with js objects created from metadata by xml2js

Example Usage

const parseString = require('xml2js').parseString;
const build = require('metadata-builder')

//XML File of Metadata
const xml = fs.readFileSync('./src/objects/Test__c.object', {encoding: 'UTF8'});
parseString(xml, (err, result) => {
  //result = javascript object of metadata xml

  //formatted xml string
  var xmlString = build(result);
  fs.writeFile('./src/objects/Test_Modified__c.object', xmlString);
});

FAQs

Last updated on 21 Aug 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc