Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xmlbuilder

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlbuilder - npm Package Versions

1
10

9.0.1

Diff

Changelog

Source

[9.0.1] - 2017-06-19

  • Fixed character validity checks to work with node.js 4.0 and 5.0. See #161.
oozcitak
published 9.0.0 •

Changelog

Source

[9.0.0] - 2017-05-05

  • Removed case conversion options.
  • Removed support for node.js 4.0 and 5.0. Minimum required version is now 6.0.
  • Fixed valid char filter to use XML 1.1 instead of 1.0. See #147.
  • Added options for negative indentation and suppressing pretty printing of text nodes. See #145.
oozcitak
published 8.2.2 •

Changelog

Source

[8.2.2] - 2016-04-08

  • Falsy values can now be used as a text node in callback mode.
oozcitak
published 8.2.1 •

Changelog

Source

[8.2.1] - 2016-04-07

  • Falsy values can now be used as a text node. See #117.
oozcitak
published 8.2.0 •

Changelog

Source

[8.2.0] - 2016-04-01

  • Removed lodash dependency to keep the library small and simple. See #114, #53, and #43.
  • Added title case to name conversion options.
oozcitak
published 8.1.0 •

Changelog

Source

[8.1.0] - 2016-03-29

  • Added the callback option to the begin export function. When used with a callback function, the XML document will be generated in chunks and each chunk will be passed to the supplied function. In this mode, begin uses a different code path and the builder should use much less memory since the entire XML tree is not kept. There are a few drawbacks though. For example, traversing the document tree or adding attributes to a node after it is written is not possible. It is also not possible to remove nodes or attributes.
var result = '';

builder.begin(function(chunk) { result += chunk; })
  .dec()
  .ele('root')
    .ele('xmlbuilder').up()
  .end();
  • Replaced native Object.assign with lodash.assign to support old JS engines. See #111.
oozcitak
published 8.0.0 •

Changelog

Source

[8.0.0] - 2016-03-25

  • Added the begin export function. See the wiki for details.
  • Added the ability to add comments and processing instructions before and after the root element. Added commentBefore, commentAfter, instructionBefore and instructionAfter functions for this purpose.
  • Dropped support for old node.js releases. Minimum required node.js version is now 4.0.
oozcitak
published 7.0.0 •

Changelog

Source

[7.0.0] - 2016-03-21

  • Processing instructions are now created as regular nodes. This is a major breaking change if you are using processing instructions. Previously processing instructions were inserted before their parent node. After this change processing instructions are appended to the children of the parent node. Note that it is not currently possible to insert processing instructions before or after the root element.

    root.ele('node').ins('pi');
    // pre-v7
    <?pi?><node/>
    // v7
    <node><?pi?></node>
    
oozcitak
published 6.0.0 •

Changelog

Source

[6.0.0] - 2016-03-20

  • Added custom XML writers. The default string conversion functions are now collected under the XMLStringWriter class which can be accessed by the stringWriter(options) function exported by the module. An XMLStreamWriter is also added which outputs the XML document to a writable stream. A stream writer can be created by calling the streamWriter(stream, options) function exported by the module. Both classes are heavily customizable and the details are added to the wiki. It is also possible to write an XML writer from scratch and use it when calling end() on the XML document.
oozcitak
published 5.0.1 •

Changelog

Source

[5.0.1] - 2016-03-08

  • Moved require statements for text case conversion to the top of files to reduce lazy requires.
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