Socket
Book a DemoInstallSign in
Socket

axios-fetcher

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-fetcher

A demo package that allows you to fetch data with axios.

1.0.2
latest
npmnpm
Version published
Maintainers
1
Created
Source

axios-fetcher

Gettin started

  • Install the package
npm i axios-fetcher
  • How to use it in your file (ex: paste it in an index.js file and then run node index.js):
const { axiosFetcher } = require('axios-fetcher');

const asyncFunction = async () => {
  const yourToken = '........';
  const requestOptions = {
    url: 'your url',
    method: 'POST',
    headers: { 'content-type': 'application/json', Authorization: `Bearer ${yourToken}` },
    data: raw,
    redirect: 'follow',
  };

  const response = await axiosFetcher(requestOptions);
};

asyncFunction();

Built with

  • Node.js
  • Axios

Company

IP Pilot:

Keywords

axios

FAQs

Package last updated on 01 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.