
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@yqg/resource
Advanced tools
axios based RESTful HTTP client for the browser and NodeJS
Using npm:
npm install @yqg/resource
Using yarn:
yarn add @yqg/resource
// new fashion
// assign
import {assign, customGet, customPost, customPut, customPatch, CustomDelete,customHead, customOptions, CustomResource} from '@yqg/resource';
const api = {
urlPrefix: '/api/entity',
url: ':id',
getCustom: customGet('getCustom'),
postCustom: customPost('postCustom'),
postFormdata: customPost({url:'postFormdata', formData: true})
...
};
export default assign(api) as CustomResource<typeof api>;
// decorator
import Resource, {autobind, getMapping, postMapping...} from '@yqg/resource';
class Entity extends Resource {
urlPrefix = '/api/entity',
url = ':id',
@getMapping('getCustom')
async getCustom() {
}
...
}
export default new Entity();
// old school
import {create, CustomResource} from '@yqg/resource';
const api = {
urlPrefix: '/api/entity',
url: ':id',
getCustom: {
url: 'getCustom',
method: 'get'
}
postCustom: {
url: 'postCustom',
method: 'post'
},
postFormdata: {
url: 'postFormdata',
method: 'post',
formData: true
},
...
}
export default create(api) as CustomResource<typeof api>;
FAQs
RESTful http resource based on axios.js
The npm package @yqg/resource receives a total of 21 weekly downloads. As such, @yqg/resource popularity was classified as not popular.
We found that @yqg/resource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.