Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @advanced-rest-client/response-raw-viewer with all npm packages installed. Try it out:

var responseRawViewer = require("@advanced-rest-client/response-raw-viewer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@advanced-rest-client/response-raw-viewer v3.0.2

An element to display the raw response data

Published on NPM

Build Status

<response-raw-viewer>

An element to display the raw HTTP response data without syntax highlighting.

<response-raw-viewer responsetext="Some response"></response-raw-viewer>

Usage

Installation

npm install --save @advanced-rest-client/response-raw-viewer

In an html file

<html>
  <head>
    <script type="module">
      import '@advanced-rest-client/response-raw-viewer/response-raw-viewer.js';
    </script>
  </head>
  <body>
    <response-raw-viewer responsetext="Some response"></response-raw-viewer>
  </body>
</html>

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/response-raw-viewer/response-raw-viewer.js';

class SampleElement extends PolymerElement {
  render() {
    return html`
    <response-raw-viewer
      .responseText="${this.response}"></response-raw-viewer>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/response-raw-viewer
cd response-raw-viewer
npm install

Running the demo locally

npm start

Running the tests

npm test

API components

This components is a part of API components ecosystem

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free