Gathering detailed insights and metrics for @kuasha420/oauth-fetch-json
Gathering detailed insights and metrics for @kuasha420/oauth-fetch-json
Gathering detailed insights and metrics for @kuasha420/oauth-fetch-json
Gathering detailed insights and metrics for @kuasha420/oauth-fetch-json
Functional 0auth protected json fetcher for node, react-native and browsers.
npm install @kuasha420/oauth-fetch-json
Typescript
Module System
TypeScript (76.76%)
JavaScript (23.24%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Commits
1 Watchers
1 Branches
2 Contributors
Updated on Nov 15, 2020
Latest Version
0.3.0
Package Id
@kuasha420/oauth-fetch-json@0.3.0
Unpacked Size
129.14 kB
Size
36.94 kB
File Count
15
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
🔥 An oauth client that fetches json. Works on node, react-native & browsers. 🔥
Install with your favorite package manager.
Using Yarn:
yarn add @kuasha420/oauth-fetch-json
Using NPM:
npm i @kuasha420/oauth-fetch-json
Now import with ESM or CommonJS Syntax:
1import { oauthFetchJson } from '@kuasha420/oauth-fetch-json'; 2const res = await oauthFetchJson(/*...*/);
1import OFJson from '@kuasha420/oauth-fetch-json'; 2const res = await OFJson.oauthFetchJson(/*...*/); 3// or, use alias fetch 4const res = await OFJson.fetch(/*...*/);
Add a script tag with the umd bundle from unpkg or release page.
1<script src="https://unpkg.com/@kuasha420/oauth-fetch-json"></script>
Now you will have OFJson
global in the window object.
1import { oauthFetchJson } from '@kuasha420/oauth-fetch-json'; 2 3const main = async () => { 4 try { 5 const res = await oauthFetchJson({ 6 url: 'https://www.exampla.org/api/v3', 7 method: 'GET', 8 consumer_key: '756uyh56uh5ru5yutr765uyhjgh67uryh675uhgr657uyr', 9 consumer_secret: '657uyhgfh567hg765uhg75uyh567uhfgh756uhrytfu', 10 }); 11 console.log(res); 12 } catch (error) { 13 console.error(error); 14 } 15}; 16 17main();
1const oauthFetchJson: <Output = any>( 2 request: Request, 3 options?: Partial<Options>, 4 extraHeaders?: Record<string, string> 5) => Promise<Output>; 6 7interface Request { 8 url: string; 9 method: string; 10 body?: object; 11 consumer_key: string; 12 consumer_secret: string; 13 access_token?: string; 14 token_secret?: string; 15} 16export interface Options { 17 cors: boolean; 18 followRedirect: boolean; 19}
This package is licensed under the MIT License.
Any kind of contribution is welcome. Thanks!
All APIS OF THIS PACKAGE ARE CONSIDERED UNSTABLE ACROSS VERSION UNTILL 1.0.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More