Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
chain-call
Advanced tools
Readme
Build a chain of method calls
Made with ❤ at @outlandish
npm install --save chain-call
yarn add chain-call
// ES6
import chainCall from 'chain-call'
// CommonJS
var chainCall = require('chain-call')
const callApi = (entity, identifier) => chainCall(api, [
entity,
[typeof identifier === 'string' ? 'slug' : 'id', identifier],
'get',
['then', (response) => response]
])
callApi('users', 59) // calls api.users().id(59).get().then((response) => response)
chainCall(subject, calls)
Chain call methods on an object.
Returns the result of invoking each method in calls
one-by-one
on the return of the previous, beginning with a call on subject
.
All pull requests and issues welcome!
If you're not sure how, check out Kent C. Dodds' great video tutorials on egghead.io!
chain-call
was created by Sam Gluck and is released under the MIT license.
FAQs
Build a chain of method calls
The npm package chain-call receives a total of 2 weekly downloads. As such, chain-call popularity was classified as not popular.
We found that chain-call 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.