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
npm install nativescript-okhttp
Typescript
Module System
Node Version
NPM Version
67.4
Supply Chain
90
Quality
82.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
6,149
Last Day
1
Last Week
5
Last Month
20
Last Year
184
5 Stars
19 Commits
5 Forks
27 Watching
1 Branches
7 Contributors
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
-54.5%
5
Compared to previous week
Last month
122.2%
20
Compared to previous month
Last year
-23.7%
184
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
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
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-23
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