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.
parse-google-autocomplete
Advanced tools
Parse Google Maps autocomplete results into structured address data
Parse Google Maps autocomplete results into structured address data
Works with most commonly typed US addresses. The results aren't always perfect—open a PR with new test fixtures if you find an unhandled case.
$ npm install --save parse-google-autocomplete
var parse = require('parse-google-autocomplete')
parse([
{
description: '1 Market Street, San Francisco, CA, United States',
// ...
},
// ...
])
//=> {id: 'abc', business: true, ...}
parse(data)
-> array
Required
Type: array[object]
An array of Google place results objects. See the test fixtures for examples.
The data is parsed into the following values, where empty values will be null
:
Type: string
The unique Google place ID.
Type: boolean
Indicates whether the result is a business based on the presence of the "establishment" primary result type.
Type: string
The name of the business, if applicable.
Type: string
The parsed address data derived from the terms
matched by Google.
MIT © Ben Drucker
FAQs
Parse Google Maps autocomplete results into structured address data
We found that parse-google-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
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.