🐥 window.fetch() api interface
window.fetch() api interface
You can install chicky
from npm.
npm install chicky --save
or from yarn
yarn add chicky
import chicky from 'chicky';
chicky.get('http://api.github.com/aganglada')
.then(data => {
console.log(data);
});
Get data from anywhere at any time.
import chicky from 'chicky';
chicky.get('http://api.github.com/aganglada')
.then(data => {
console.log(data);
});
Create new data for a better future.
import chicky from 'chicky';
chicky.post('http://api.github.com/aganglada', {
repo: {
name: 'chicky'
}
})
.then(data => {
console.log(data);
});
Update data to maintain the world.
import chicky from 'chicky';
chicky.put('http://api.github.com/aganglada', {
repo: {
name: 'chicky',
owner: 'alex'
}
})
.then(data => {
console.log(data);
});
Change data of a single person and make it optimal.
import chicky from 'chicky';
chicky.patch('http://api.github.com/aganglada', {
repo: {
name: 'chicky',
owner: 'alex'
}
})
.then(data => {
console.log(data);
});
Get rid of things you don't need.
import chicky from 'chicky';
chicky.delete('http://api.github.com/aganglada', {
repo: {
name: 'chicky'
}
})
.then(data => {
console.log(data);
});
If you like to contribute to this project be sure all the changes you made,
make sense for everyone and they can continue using chicky
as their general api service.
MIT © aganglada