node-xdt

Node.js module to transform Web.config(XML) using xdt(Microsoft Xml Document Transformation) — Edit

Usage no npm install needed!

<script type="module">
  import nodeXdt from 'https://cdn.skypack.dev/node-xdt';
</script>

README

node-xdt

Node.js module to transform Web.config(XML) using xdt(Microsoft Xml Document Transformation)

npm install node-xdt --save

var xdt = require('node-xdt');

var options = {
     src: '{path}/Web.config',
     dest: '{outpath}/Web.config',
     transform:'{path}/Web.Release.config',
     useMono: true
};

xdt(options,function(error){
    //....
});