New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

xsltproc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xsltproc

Wrapper for xsltproc.

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
512
-5.19%
Maintainers
1
Weekly downloads
 
Created
Source

xsltproc

Build Status Test Coverage NPM version

Wrapper for xsltproc.

Getting Started

First install the xsltproc if not already installed on your system read installing an XSLT processor. Install the module with: npm install xsltproc --save

var xsltproc = require('xsltproc')

var xslt = xsltproc.transform('stylesheet.xsl', 'data.xml');

xslt.stdout.on('data', function (data) {
  console.log('xsltproc stdout: ' + data);
});

xslt.stderr.on('data', function (data) {
  console.log('xsltproc stderr: ' + data);
});

xslt.on('exit', function (code) {
  console.log('xsltproc process exited with code ' + code);
});

Example using a string parameter:

var xsltproc = require('xsltproc')

xsltproc.transform('stylesheet.xsl', 'data.xml', {
  "profile": true,
  "output": "test.txt",
  "stringparam": {
    "key": 'title',
    "val": 'This is a single parameter passed as subtitle----anvidsahviulasdhvklasdbcuw'
  },
});

It is also possible to use multple string parameters:

var xsltproc = require('xsltproc')

xsltproc.transform('stylesheet.xsl', 'data.xml', {
  "profile": true,
  "output": "test.txt",
  "stringparam": [
    {
      "key": 'title',
      "val": 'This is a single parameter passed as subtitle----anvidsahviulasdhvklasdbcuw'
    },
    {
      "key": 'anotherTitle',
      "val": 'This is a another single parameter passed'
    }
  ],
});

Release History

  • v0.0.4:
    • added multiple string parameters support @rrgarciach
  • v0.0.3:
    • added stringparameter @spino9330
  • v0.0.2:
    • update packages
  • v0.0.1:
    • initial release

License

Copyright (c) 2014 Ilya Rogov. Licensed under the MIT license.

FAQs

Package last updated on 31 Oct 2017

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