New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cicara/kite

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cicara/kite

kite is tiny fetch wrapper.

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Kite

kite is tiny fetch wrapper.

  • kite.js 3.57 kB, gzip 1.29 kB
  • kite.umd.cjs 2.86 kB, gzip 1.21 kB

Installation

npm install @cicara/kite
# or
pnpm add @cicara/kite
# or
yarn add @cicara/kite

How to use

import { Kite, KiteResponse } from "@cicara/kite";

const kite = new Kite({
  interceptors: [
    (request, next) => {
      return next(request);
    },
  ],
  paramsSerializer: (params) => {
    return new URLSearchParams(params).toString();
  },
});

try {
  const data = await kite.get("/api/some/path", {
    params: {
      _t: Date.now(),
      id: "some-id",
    },
  });
  console.log(data);
} catch (err) {
  if (err instanceof KiteResponse) {
    console.log(err.status);
  }
  console.error(err);
}

FAQs

Package last updated on 14 Aug 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc