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

utu-platform-messages

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utu-platform-messages

uTu Platform Messages

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Platform Messages

Renders mocked version of messaging platforms messages.

Installation

  yarn add utu-platform-messages

Usage

import PlatformMessage from 'platform-messages';

const Render = ({ message }) => (
  <PlatformMessage platform="sms" message={message} />
)

const message = {
  message: "", // text from the message
  botMessage: false, // was this message from a bot or from the user
  rawMessage: {
    /* platform raw message */
  }
};

Testing

$ yarn run test:watch

Storybook

$ yarn run storybook

FAQs

Package last updated on 14 Mar 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