Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-address-autofill

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-address-autofill

An ES6 Module using the Google Places Autocomplete API for address completion in forms.

  • 1.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

js-address-autofill

A Javascript using the Google Places Autocomplete API for address completion in forms.

Installation

This section will follow soon, after I've accomplished all tests.

Running the Demo / DevServer

The demo is a simple single website that runs the script for tryouts. It can be set up in short time.

This setup also works for development since the webpack's filewatcher is activated as well.

1. Add configuration

Create a new file: ´./demo/config.json´ and add your Google Maps API like this:

{
  "apiKey": "YOUR_API_KEY_HERE"
}

This will setup the key for your demo environment.

It's also possible to pass the API key within the options directly.

2. Run the Server
npm start

This should start the server immediately and open up a new browser tab with the demo page.

If not so, there might be a problem with the port configuration. The demo/dev server is configured for Port 9000 on localhost: http://localhost:9000/

To change this setting look in the webpack.config.js at the property: devServer.

Commands

Following commands are supported by the build system:

npm start       // Starts the Devserver
npm run watch   // Starts the file watcher for development
npm run prod    // Bundles the minified javascript and source maps
npm run dev     // Bundles the unminified javascript and source maps
npm run build   // Runs lint, test, dev and prod mode at once (to prepare releases)
npm run test    // Runs jest testrunner
npm run lint    // Runs eslint on source files

Keywords

FAQs

Package last updated on 13 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc