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 @carhoo/widget-store with all npm packages installed. Try it out:

var widgetStore = require("@carhoo/widget-store")

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

@carhoo/widget-store v0.0.9

Store car list widget

Carhoo Store Widget

npm version

Print

Como usar?

Primeiro copie e cole este trecho de html no local onde deseja renderizar a lista

<div class="carhoo-widget"></div>

Após o primeiro passo, copie e cole este script no seu site

<script async>
  (function (w,d,s,o,f,js,fjs) {
      w['Carhoo-Store']=o;w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
      js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
      js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
  }(window, document, 'script', 'cw', 'https://unpkg.com/@carhoo/widget-store@0.0.9/dist/widget.js'));
  cw('render', {responsive: true});
</script>
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