npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

sepomex-form-plugin

v1.0.0

Published

Sepomex form plugin + Google maps

Readme

SepomexForm with Google Maps integration facilitates the use of forms with addresses in your application.

About

SepomexForm helps you to easily manage your forms with address information.

SepomexForm brings you easy implementation of form filling using Google Maps Api, by automatically filling fields based on a Google Maps arker, and by placing markers based on form information.

SepomexForm has a second functionality, by using the Sepomex API, it allows fields of your form to be automatically filled when typing more specific information. See below for examples and a more thorough explanation.

SepomexForm has even a third functionality! It migrates all data from Sepomex Api to JSModels

Installation of Google Map Sepomex Form:

  1. Include jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  2. Include Google Maps Api. You will need an API key, if you don't have one you can get it here:

    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
  3. Include plugin's code:

    <script src="dist/sepomex-form-plugin.js"></script>
  4. Call the plugin:

    $.fn.sepomexForm();

Installation of Autocompleting with Sepomex Api:

  1. Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  1. Install all Node packages dependencies
  npm install
  1. Install browserify, you can see the instructions here

  2. Include plugin's code:

<script src="dist/sepomex-form-plugin.js"></script>
  1. Use browserify command to bundle all Node.JS requires. Please look for more information here

  2. Call the plugin:

  $.fn.sepomexForm();

Table of Contents

Configuring SepomexForm

Default config

By default SepomexForm uses the following IDs in order to know what fields have to be filled, if you wish to use the default configuration then you must use these ids in you containers otherwise SepomexForm will not behave as expected.

  {
    formContainer: "#AddressForm",
    mapContainer: "#MapWrapper",
    numberContainer: "#AddressNumber",
    streetContainer: "#AddressStreet",
    suburbContainer: "#AddressSuburb",
    cityContainer: "#AddressCity",
    stateContainer: "#AddressState",
    countryContainer: "#AddressCountry",
    zipCodeContainer: "#AddressZipCode"
  }

Attribute | Type | Default | Description --- | --- | --- | --- formContainer | String | #AddressForm | Specifies the container of the form to be filled. mapContainer | String | #MapWrapper | Specifies the container for the Map. numberContainer | String | #AddressNumber | Specifies the input for the number. streetContainer | String | #AddressStreet | Specifies the input for the Street. suburbContainer | String | #AddressSuburb | Specifies the input for the Suburb. cityContainer | String | #AddressCity | Specifies the input for the City. stateContainer | String | #AddressState | Specifies the input for the State. countryContainer | String | #AddressCountry | Specifies the input for the Country. zipCodeContainer | String | #AddressZipCode | Specifies the input for the Zipcode.

Custom config

If you wish to use different ids as the default ones, SepomexForm allows you to override them. In order to do that use the following, before calling the plugin.

  $.fn.sepomexForm.defaults.formContainer = "#CustomFormContainer";
  $.fn.sepomexForm.defaults.mapContainer = "#CustomMapContainer";

  // Plugin call
  $.fn.sepomexForm();

Configuring AutoCompleteForm

Default config AutoCompleteForm

By default AutCompleteForm uses the following IDs in order to know what fields have to be filled, if you wish to use the default configuration then you must use these ids in you containers otherwise AutCompleteForm will not behave as expected.

  {
    suburbContainer: "#AddressSuburb",
    cityContainer: "#AddressCity",
    stateContainer: "#AddressState",
    zipCodeContainer: "#AddressZipCode"
  }

Attribute | Type | Default | Description --- | --- | --- | --- suburbContainer | String | #AddressSuburb | Specifies the input for the Suburb. cityContainer | String | #AddressCity | Specifies the input for the City. stateContainer | String | #AddressState | Specifies the input for the State. zipCodeContainer | String | #AddressZipCode | Specifies the input for the Zipcode.

Custom config

If you wish to use different ids as the default ones, AutoCompleteForm allows you to override them. In order to do that use the following, before calling the plugin.

  $.fn.autocompleteForm.defaults.suburbContainer = "#CustomSuburbContainer";
  $.fn.autocompleteForm.defaults.cityContainer = "#CustomCityContainer";
  $.fn.autocompleteForm.defaults.stateContainer = "#CustomStateContainer";
  $.fn.autocompleteForm.defaults.zipCodeContainer = "#CustomZipCodeContainer";

  // Plugin call
  $.fn.autocompleteForm();

JSModels

SepomexForm migrates the data from [SepomexApi] to JsModels. Please refer to its documentation for more about it. here

Contributing

Please submit all pull requests against a separate branch. Please follow the standard for naming the variables, mixins, etc.

Heroes

Ana Paola Treviño

Erik Torres

René García

License

Code and documentation copyright 2015 Icalia Labs. Code released under the MIT license.