Gathering detailed insights and metrics for nativescript-okhttp
Gathering detailed insights and metrics for nativescript-okhttp
Gathering detailed insights and metrics for nativescript-okhttp
Gathering detailed insights and metrics for nativescript-okhttp
NativeScript plugin for the OkHttp Android library.
npm install nativescript-okhttp
Typescript
Module System
Node Version
NPM Version
67.7
Supply Chain
90
Quality
82.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
6,291
Last Day
1
Last Week
7
Last Month
39
Last Year
271
5 Stars
19 Commits
5 Forks
26 Watchers
1 Branches
7 Contributors
Updated on Nov 18, 2024
Latest Version
0.0.9
Package Id
nativescript-okhttp@0.0.9
Unpacked Size
1.65 MB
Size
1.28 MB
File Count
43
NPM Version
6.2.0
Node Version
10.7.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-69.6%
7
Compared to previous week
Last Month
-15.2%
39
Compared to previous month
Last Year
66.3%
271
Compared to previous year
No dependencies detected.
OkHttp is an HTTP client that supports:
Run the following command from the root of your project:
$ tns plugin add nativescript-okhttp
This command automatically installs the necessary files, as well as stores nativescript-okhttp as a dependency in your project's package.json
file.
To use the social share module you must first require()
it. After you require()
the module you have access to its APIs.
1var okHttp = require("nativescript-okhttp");
The getString()
method downloads a URL as a string.
1var okHttp = require("nativescript-okhttp"); 2function pageLoaded(args) { 3 var result = okHttp.getString("http://www.google.com/"); 4 console.log(result); 5} 6exports.pageLoaded = pageLoaded;
The getString()
method downloads a URL as a string.
1var okHttp = require("nativescript-okhttp"); 2function pageLoaded(args) { 3 var json = okHttp.getJSON("https://api.github.com/gists/c2a7c39532239ff261be"); 4 console.log("JSON url: " + json.url); 5} 6exports.pageLoaded = pageLoaded;
The getImage()
method returns an image as a stream from a remote URL.
In this example, we will download an image from umgur (http://i.imgur.com/sXG9IHW.jpg) and we will share it ot Facebook using a social share plugin by @tjvantoll (https://github.com/tjvantoll/nativescript-social-share).
1var socialShare = require("nativescript-social-share"); 2var imageSource = require("image-source"); 3var okHttp = require("nativescript-okhttp"); 4function pageLoaded(args) { 5 var inputStream = okHttp.getImage("http://i.imgur.com/sXG9IHW.jpg"); 6 var image = imageSource.fromData(inputStream); 7 socialShare.shareImage(image); 8} 9exports.pageLoaded = pageLoaded;
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
binaries present in source code
Details
Reason
Found 2/17 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
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