moztw-usercard

2.0.0 • Public • Published

moztw-usercard

example

var minixhr = require('minixhr')
var bel = require('bel')
var usercard = require('moztw-usercard')
 
var url = 'https://jsonplaceholder.typicode.com/users'
 
minixhr(url, function (json) {
  var data = JSON.parse(json)
  var allusers = data.map(user => usercard(user))
   var app = bel`
      <div>
       ${allusers}
      </div>
    `
  document.body.appendChild(app)
  console.log(data)
})

Readme

Keywords

none

Package Sidebar

Install

npm i moztw-usercard

Weekly Downloads

1

Version

2.0.0

License

ISC

Last publish

Collaborators

  • ninabreznik