Socket
Socket
Sign inDemoInstall

ca-bucky-client

Package Overview
Dependencies
0
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

ca-bucky-client

A client-side http client


Version published
Maintainers
1
0

Weekly downloads

Readme

Source

ca-bucky-client

A client-side http client

Features

  • Server & Client side
  • ES6 syntax, managed with Prettier + Eslint and Stylelint
  • Unit testing via Jest

Install

yarn add ca-bucky-client
// or
npm install ca-bucky-client

Usage

import {client} from 'ca-bucky-client';
import {useEffect} from 'react';

const App = () => {
  const [state, setState] = useState(null);
  useEffect(async () => {
    const data = await client.get('/my-url');
    setState(data);
  }, []);
  
  return <div>{state && <span>{state.data}</span>}</div>;
};

FAQs

Last updated on 12 Sep 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc