Gathering detailed insights and metrics for smartystreets-javascript-sdk-utils
Gathering detailed insights and metrics for smartystreets-javascript-sdk-utils
Gathering detailed insights and metrics for smartystreets-javascript-sdk-utils
Gathering detailed insights and metrics for smartystreets-javascript-sdk-utils
npm install smartystreets-javascript-sdk-utils
Typescript
Module System
Node Version
NPM Version
JavaScript (92.4%)
Makefile (7.6%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
104 Commits
1 Forks
8 Watchers
1 Branches
5 Contributors
Updated on Jul 16, 2024
Latest Version
1.2.7
Package Id
smartystreets-javascript-sdk-utils@1.2.7
Unpacked Size
26.13 kB
Size
7.64 kB
File Count
14
NPM Version
9.5.0
Node Version
18.14.2
Published on
Aug 31, 2023
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
1
The Smarty JavaScript SDK Utils provide an additional level of analysis for US Street lookups validated through the Smarty JavaScript SDK. This package consists of the following utilities for Smarty API response analysis.
isValid()
Determines if the lookup is considered mail deliverable by the USPS. Returns <Boolean>.
lookup
: (<Object>) a validated US Street LookupisInvalid()
Determines if the lookup is not considered mail deliverable by the USPS. Returns <Boolean>.
lookup
: (<Object>) a validated US Street LookupisAmbiguous()
Determines if the lookup returned multiple possible match candidates. Returns <Boolean>.
lookup
: (<Object>) a validated US Street LookupisMissingSecondary()
Determines if the lookup requires a secondary address. Returns <Boolean>.
lookup
: (<Object>) a validated US Street LookupThis example is modified from the US Street API code example.
const SmartySDK = require("smartystreets-javascript-sdk");
const SmartyCore = SmartySDK.core;
const Lookup = SmartySDK.usStreet.Lookup;
const utils = require("smartystreets-javascript-sdk-utils");
let authId = process.env.SMARTY_AUTH_ID;
let authToken = process.env.SMARTY_AUTH_TOKEN;
let clientBuilder = new SmartyCore.ClientBuilder(new SmartyCore.StaticCredentials(authId, authToken));
let client = clientBuilder.buildUsStreetApiClient();
let lookup1 = new Lookup();
lookup1.street = "1600 Pennsylvania Ave NW";
lookup1.city = "Washington";
lookup1.state = "DC";
client.send(lookup1)
.then(handleSuccess)
.catch(handleError);
function handleSuccess(response) {
response.lookups.map(lookup => console.log(lookup.result));
// Is lookup1 valid?
console.log(utils.isValid(response.lookups[0]));
// Is lookup1 invalid?
console.log(utils.isInvalid(response.lookups[0]));
// Is lookup1 ambiguous?
console.log(utils.isAmbiguous(response.lookups[0]));
// Is lookup1 missing a secondary address?
console.log(utils.isMissingSecondary(response.lookups[0]));
}
function handleError(response) {
console.log(response);
}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
5 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 1/8 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
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
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-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