
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
mui-places-autocomplete
Advanced tools
Material-UI React component that provides suggestions/autocompletes places using the Google Places API
To install this component run the following command:
yarn add mui-places-autocomplete
or
npm install mui-places-autocomplete --save
This component relies on some basic setup before usage. It makes use of services provided by Google. To properly make use of the services you will need to do three things:
You can do all of these things from your Google developers console here: https://console.developers.google.com
The component relies on the Places library in the Google Maps JavaScript API. To load the Places library on the client you must add the following to the HTML document you deliver to your clients:
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"></script>
Be sure that you replace YOUR_API_KEY
with the one you just created or obtained previously.
This component also has testing which makes use of the Places library in the Google Maps JavaScript API. Rather than loading the Places library it uses a module provided by Google. It also requires an API key. This key can be provided to a file @ test/api-key.js
. If you would like it can also be provided as an environment variable named GOOGLE_API_KEY
.
import React from 'react'
import MUIPlacesAutocomplete from 'mui-places-autocomplete'
const Example = () => (<MUIPlacesAutocomplete />)
export default Example
To see a demo of this component locally clone this repository and run:
yarn demo
or
npm run demo
Note that you must have followed the setup steps to run the demo as it depends on services provided by Google.
This was my first open-source project that I undertook while I was teaching myself full-stack development (JS (ES6)/HTML/CSS, Node, Express, NoSQL (DynamoDB), GraphQL, React, Redux, Material-UI, etc.). I'm very interested in taking feedback to either improve my skills (i.e. correct errors :)) or to make this component more useful in general/for your use case. Please feel free to provide feedback by opening an issue or messaging me.
MIT
FAQs
Material-UI React component that provides suggestions/autocompletes places using the Google Places API
The npm package mui-places-autocomplete receives a total of 329 weekly downloads. As such, mui-places-autocomplete popularity was classified as not popular.
We found that mui-places-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.