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

aswbxml

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

aswbxml

ActiveSync WBXML Encoder/Decoder

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
124
195.24%
Maintainers
1
Weekly downloads
 
Created
Source

aswbxml - ActiveSync WBXML Encoder/Decoder

Simple WBXML encoder and decoder intended for ActiveSync messages. Supported are tags, codepages, inline strings and opaque data. Opaque data however, is only processed during decoding and will be added as base64 encoded CDATA content.

npm install aswbxml

API (synchronous, will throw)

encode(data, codePage)

data xml2js-style formatted object

codePage code page name (string), e.g.: 'ActiveSync'

decode(buf, codePage)

buf wbxml data (Buffer)

codePage code page name (string), e.g.: 'ActiveSync'

Usage (example with xml2js)

var fs = require('fs'),
	xml2js = require('xml2js'),
	aswbxml = require('aswbxml');

var contents = fs.readFileSync('./myActiveSyncRequest.xml',
	{encoding: 'utf8'});

xml2js.parseString(contents, function(err, res) {
	// handle error
	var binaryRep = aswbxml.encode(res, 'ActiveSync');
});

Custom code pages

Easy as pie.. just fork and add your own code pages in ./lib/pages

Keywords

activesync

FAQs

Package last updated on 01 Jun 2016

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