New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

welfare-lottery

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

welfare-lottery

This is an implementation for welfare lottery rule on nodejs.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

welfare-lottery

This is an implementation for welfare lottery rule on nodejs.

This project is write in Typescript 1.4.

Api:

var lotteryRegister = require("welfare-lottery");

lotteryRegister.getAllLottery():api[];
lotteryRegister.findLotteryByCode(code):api;

var api = lotteryRegister.findLotteryByCode("01");

api.name // chinese name of current api
api.price // 2 by now
api.code // lottery code
api.generateRandomCastCodes(count,playMethod,castMethod):string[];
api.countLotteryNum(castCode,playMethod,castMethod):number;
api.countLotteryCost(castCode,playMethod,castMethod,multiple):number;
api.getHitCodes(castCode,awardCode,playMethod,castMethod):{value}[];


I will be pleasure if this helps.

Keywords

lottery

FAQs

Package last updated on 01 Jul 2015

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