npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

strxml-es

1.0.0 • Public • Published

Build Status

strxml-updated

This is merely a newly packaged version of strxml that can be npm installed normally.

Create xml with strings and concatenation.

install

npm install --save strxml

api

  • tag(el, [attributes], contents)
  • tagClose(el, attributes)
  • encode(str)
  • attr(attributes)

example

 
var tag = require('strxml').tag;
 
tag('Layer',
    tag('StyleName', 'style-' + i) +
    tag('Datasource', {
      name: 'layer-' + i,
      srs: WGS84
    }));

install

npm i strxml-es

Downloadsweekly downloads

1

version

1.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability