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

sf-compress

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

sf-compress

Library for compressing Salesforce metadata

  • 0.1.0-alpha.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Development In Progress - more docs, examples and general explanation on the way

Interfaces may change

sf-compress

Library for compressing Salesforce metadata.

Version Known Vulnerabilities Downloads/week License Build and Test

Usage

	compressXml(xml, compressionTagsOrOptions);

Example 1: compress all xml

	compressXml(xml);

Option defaults for example 1

	compressXml(xml, {
		indentation: 'space',
		tabSize: 4,
		endOfLine: 'lf',
		maintainDepth: false,
		compressionDepth: 1,
	});

Example 2: compress tag1 and tag2 xml

	compressXml(xml, [ 'tag1', 'tag2' ]);

Option defaults for example 2

	compressXml(xml, {
		indentation: 'space',
		tabSize: 4,
		endOfLine: 'lf',
		maintainDepth: true,
		compressionTags: [ 'tag1', 'tag2' ]
	});

Keywords

FAQs

Package last updated on 25 Apr 2021

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