JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31
  • Score
    100M100P100Q88777F
  • License MIT

tuby webapi server visit lib

Package Exports

  • @tuby/webapi

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tuby/webapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#@tuby/webapi

##Installation With NPM:

$ npm install @tuby/webapi

With Yarn:

$ yarn @tuby/webapi

##Update With NPM:

$ npm update @tuby/webapi

With Yarn:

$ yarn upgrade @tuby/webapi

Usage

import {WebAPI} from '@tuby/webapi'

var webapi = new WebAPI({
    "baseUrl": "http://192.168.19.41:10003/api",
});
webapi.signIn({
    "name": "admin",
    "pass": "admin123"
})
.then(res => {
    expect(res).to.be.an('object');
    console.log(res);
}).catch(res=>{
    console.log(res);
})

Testing & Dev

npm run dev
npm run demo

📜 Changelog

Detailed changes for each release are documented in the CHANGELOG.md

ÂŠī¸ License

MIT