Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 506 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 506 Bytes

nat-stream

Installation

weexpack plugin add nat-stream
npm install natjs --save

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'

Nat.fetch('http://domain.com/api', {
    method: 'GET',
    type: 'json'
}, (err, ret) => {
    console.log(ret)
})

</script>

See the Nat Documentation for more details.