Coder Social home page Coder Social logo

biggs's People

Contributors

cprodhomme avatar gr2m avatar hiroshi avatar pauloancheta avatar petergoldstein avatar thomaschiesa avatar yolk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

biggs's Issues

Feature: Line 2

Hello,

would be great adding the line2 for street name.
It's used by Stripe in the shipping object: https://stripe.com/docs/api/customers/object#customer_object-address

f = Biggs::Formatter.new
f.format("de", # <= ISO alpha 2 code
  :recipient  => "Yolk Sebastian Munz & Julia Soergel GbR",
  :street     => "Musterallee 12", 
 :street2     => "Yellow bulding", 
  :city       => "Ausgedacht",
  :zip        => 12345,
  :state      => "Nowhere" # <= state/province/region
)

Line Breaks

Biggs doesn't seem to be returning line breaks. An address like this:

Yolk Sebastian Munz & Julia Soergel GbR
Adalbertstr. 11
10999 Berlin
Germany

Displays like this:

Yolk Sebastian Munz & Julia Soergel GbR Adalbertstr. 11 10999 Berlin Germany

Is there a way to insert line breaks where appropriate?

similar project

Hi,

sorry for posting this as an issue, just wanted to make you aware - we've started a simialr project in which we make the address formtting templates independent of the language used for the parsing
https://github.com/lokku/address-formatting

perhaps there are ways to collaborate?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.