Skip to content

natjs/weex-nat-transfer

Repository files navigation

nat-transfer

Installation

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

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'

Nat.download({
    url: 'http://domain.com/file'
})

Nat.upload({
    url: 'http://domain.com/upload',
    path: 'filepath'
})

</script>

See the Nat Documentation for more details.