sf-compress
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha.2 • Public • Published

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' ]
	});

Package Sidebar

Install

npm i sf-compress

Weekly Downloads

2

Version

0.1.0-alpha.2

License

MIT

Unpacked Size

8.43 kB

Total Files

7

Last publish

Collaborators

  • gdman