🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

againcash

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

againcash

web cash

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

againCash for xhr web cash

againCash install

  npm install againcash --save-dev

againCash for ES6

  
  import againcash from 'againcash'

  const cashAgain = new againcash()

  // setcash need path, preload, response, [cashType]
  cashAgain.setAgainAgent('/index', {page: 1}, {data:{code: 0}}, 'arr')

  // getcash need path, preload, [cashType]
  cashAgain.getAgainAgent('/index', {page: 1}, 'arr')

  // after use cashAgain.getAgainAgent 
  // if have cash cashAgain.resPromise as a promise to return
  // if no cash cashAgain.resPromise as a null to return
  if (cashAgain.resPromise) {
    return cashAgain.resPromise
  } else {
    // for example, get xhr
    return axois.get()
  }

update:

npm login
// 用户名:hansin
// 密码:****
// 邮箱:hansincn@gmail.com 
npm version patch 
npm publish

FAQs

Package last updated on 09 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts