sdknow1
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

sdknow1

Documentation_Pending

Installing sdknow1

With NPM:

$ npm install sdknow1

You can install Node.js easily with NVM or ASDF.

Sdk-now1 is a software-development-kit for getting a single post by id,getAllPosts, and createPost in jsonplaceholder api with a built-in load balancer.

Use case ( How you can use this package )

import Typicode from "sdknow1";
const client = new Typicode({
  apiKey: "123",
});

client.getPosts().then((res) => {
  // this code shall show you all jsonplaceholder posts
  console.log(res);
});
client.getPostById(1).then((res) => {
  // this function shall show you only post according to id that you passed.
  console.log(res);
});

client
  .createPost({
    title: "fizanTest",
    body: "This testing phase is going well.",
    userId: 1,
  })
  .then((p) => {
    console.log(`Created new post with id ${p.id}`);
    // this function shall createPost according to passed data
  });

/sdknow1/

    Package Sidebar

    Install

    npm i sdknow1

    Weekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    9.04 kB

    Total Files

    11

    Last publish

    Collaborators

    • muhammadfizaniqbal