
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
apijson-builder
Advanced tools
apijson 不必过多解释,可查看连接。 apijson的请求构建是唯一的学习成本(不考虑撸源码的话),因此为了方便js构建rest请求, 所以有了apijson-builder, 是个小东西,代码量也很小。方便你快速构建apijson的rest请求。
import ApiJsonBuilder from 'apijson-builder'
Vue.use(ApiJsonBuilder, {
baseURL: '/api/apijson',
tokenKey: 'X-Token',
token: '304958029525nsd23423'
})
import {QueryBuilder} from 'apijson-builder';
import Condition from "./condition";
QueryBuilder.by('User')
.condition(Condition.by('name', 'like', 'zhang'))
.order('name')
.multi(true)
.setResFields('name,age,phone')
.page(0, 10)
.send()
.then(resp => {
const {total, User: users} = resp // users 即为数据, total为总数
})
你可以这样设置token
import {setToken, LoginBuilder} from "apijson-builder";
LoginBuilder.login('username', 'password').then(resp => {
const {token} = resp
setToken(token)
})
更多使用方式自己看下就知道了, 欢迎来完善。 来改源码前请务必熟知apijson的语法!
FAQs
A javascript package for apijson javascript operations
The npm package apijson-builder receives a total of 1 weekly downloads. As such, apijson-builder popularity was classified as not popular.
We found that apijson-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.