1.0.2 • Published 2 years ago
mintameta_r v1.0.2
Installing
Using npm:
$ npm install mintameta_r
Using yarn:
$ yarn add mintameta_r
Using pnpm:
$ pnpm add mintameta_r
Example
note: CommonJS usage
const {http} = require('mintameta_r')
// call method: http.<method>
const {httpServer} = require('mintameta_r')
// call method: httpServer.<method>
Introduction package (Older browsers)
import {http} from 'mintameta_r'
// call method: http.<method>
import httpServer from 'mintameta_r'
// call method: httpServer.<method>
useage
const {http} = require('mintameta_r')
// Make a request for api userRegister
// Instantiate a http class and execute the request
(async () => {
console.log('http', http)
console.log('http.userRegister', await http.userRegister())
})()
// Make a request for api nftGetData
// Instantiate a httpServer class and execute the request
const {httpServer} = require('mintameta_r')
(async function (){
console.log('httpServer.nftGetData', await httpServer.nftGetData({
subDomain: ''
}))
})()