npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

degree_api

v0.12.1

Published

REQUEST Data from API.

Downloads

21

Readme

degree_api

npm Twitter URL Discord NPM npm npm GitHub Repo stars

٢٠٢٣٠٣٠٢_٠١٤٠١٢

✴️ TypeScript Only

From Ali El0malki

Official version 0.12.1

Features I work on!

  • ✅️ Change the Program to OOP.
  • ✅️ add New Method to REQUEST.
  • ✅️ add Paramas to Request URL [New Method].
  • ✅️ Update performance.
  • ✅️ Fixed Bugs.
  • ❌️ add POST Method.
  • ❌️ add PUT Method.
  • ❌️ add DELETE Method.

What is degree_api 🤔

Simple Functionality to REQUEST Data from any API in TypeScript.

What is API ?

API is the acronym for application programming interface — a software intermediary that allows two applications to talk to each other. APIs are an accessible way to extract and share data within and across organizations. APIs are all around us. Every time you use a rideshare app, send a mobile payment, or change the thermostat temperature from your phone, you’re using an API.

Why use degree_api 🤔

one line to request api and catch errors, with high performance.

What changes v0.12.0 ?

-- Changes in v0.12.0 :

  • ✅️ Change the Program to OOP.
  • ✅️ add New Method to REQUEST.
  • ✅️ add Paramas to Request URL [New Method].
  • ✅️ Update performance.
  • ✅️ Fixed Bugs.

add degree_api to my project 🤔

add the package using npm!

npm i degree_api

How use New Method ?


// -- import degree_api -- //
import { degapi } from "degree_api";

// -- API URL [ Variable ] -- //
const API_URL = "API_URL_HERE";

// -- Using New Method without [Params] in Project -- //
degapi.nGet(URL_API);

// -- Using New Method with [Params] in Project -- //
degapi.nGet(URL_API, <Your_Param>);


// -- Output -- //

// if => True => Congrats! Your response Here 👏 //
// if => False => The cause of the error will appear Here. //

Example with JsonPlaceholder API ..


// -- import degree_api -- //
import { degapi } from "degree_api";

// -- API URL [ Variable ] -- //
const API_URL = "https://jsonplaceholder.typicode.com/todos";

// -- Search in Todos using ID -- //

// -- Using New Method with [Param] in Project -- //
degapi.nGet(URL_API, "1");
// -- Output -- //
{ userId: 1, id: 1, title: 'delectus aut autem', completed: false }

How use Old Method ?


// -- import degree_api -- //
import { degapi } from "degree_api";

// -- API URL [ Variable ] -- //
const API_URL = "API_URL_HERE";

// -- Using OldGetRequest in Project -- //
degapi.oGet(URL_API);


// -- Output -- //

// if => True => Congrats! Your response Here 👏 //
// if => False => The cause of the error will appear Here. //

Other things

  • Have a problem or Bugs 🤔

    send on issues.

  • Have thing to help me 🤔

    send on pull request.

End The Readme

If you would like to support me, and make me continue to publish and develop. Please Star The Repository.

Thank You 😊