Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

fwsp-umf-message

Package Overview
Dependencies
1
Maintainers
2
Versions
14
Issues
File Explorer

Advanced tools

fwsp-umf-message

umf-message: a tool for creating and working with UMF style messages

    0.4.3latest

Version published
Maintainers
2
Yearly downloads
12,748
decreased by-6.6%

Weekly downloads

Readme

Source

UMF Message Build Status

Used to create and validate UMF style messages.

Install

You can install it via NPM:

$ npm -i fwsp-umf-message

Usage

const UMFMessage = require('fwsp-umf-message'); let msg = UMFMessage.createMessage({ to: `test-service:[GET]/v1/somedata`, from: 'client:/', body: { somevalues: [1,2,3,4] } });

You can also access message fields for getting and setting:

console.log('msg.to', msg.to); msg.to = 'router:/'; console.log('msg.to', msg.to);

To retrieve an entire message object use:

console.log(msg.toJSON());

Tests

Tests can be found in the specs folder.

$ npm test

FAQs

What is fwsp-umf-message?

umf-message: a tool for creating and working with UMF style messages

Is fwsp-umf-message popular?

The npm package fwsp-umf-message receives a total of 259 weekly downloads. As such, fwsp-umf-message popularity was classified as not popular.

Is fwsp-umf-message well maintained?

We found that fwsp-umf-message demonstrated a not healthy version release cadence and project activity. It has 2 open source maintainers collaborating on the project.

Last updated on 09 Nov 2016
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc