Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@addresszen/react
Advanced tools
The <AddressLookup />
component is a wrapper around the @addresszen/address-lookup
library. It provides a simple way to integrate the address lookup functionality into your React application.
npm i @addresszen/react
By default, AddressLookup will render an input field that will trigger the address lookup when focused.
import { AddressLookup } from "@addresszen/react";
<AddressLookup
// AddressLookup accepts the same props as an input element
className="my-input-class"
// AddressLookup also accepts a config prop
config={{
// Add your API Key
apiKey: "ak_test",
// Handle the address once it has been retrieved from the API
onAddressRetrieved: (address) => {
setState({ address });
},
}}
/>;
AddressLookup accepts a single React Element component as a child. This allows you to use your own input component.
import { AddressLookup } from "@addresszen/react";
<AddressLookup
config={{
apiKey: "ak_test",
onAddressRetrieved: (a) => setState(a),
}}
>
<input className="my-input-class" placeholder="Enter your address" />
</AddressLookup>;
The top level props provided to <AddressLookup />
configures the underlying attributes for the <input>
element.
Configuration specific to the address lookup functionality is passed as a config
prop.
The configuration object maps identically to the configuration object used by @addresszen/address-lookup
. Find out more in our documentation.
Copyright IDDQD Limited
FAQs
Address Lookup React Component from AddressZen
The npm package @addresszen/react receives a total of 3 weekly downloads. As such, @addresszen/react popularity was classified as not popular.
We found that @addresszen/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.