Giter Site home page Giter Site logo

Comments (5)

catamphetamine avatar catamphetamine commented on August 17, 2024

Yes, it says:

sh: 1: libphonenumber-generate-metadata: not found

Which means exactly what it is: libphonenumber-generate-metadata executable is not found.

The readme says:

First, add metadata generation script to your project's package.json

So, this npm script should be added to the project's package.json, not to libphonenumber-js's package.json.

from libphonenumber-js.

onlineautoparts avatar onlineautoparts commented on August 17, 2024

[EDITED]
Ok thanks for clearing that up.

I'm using the Standalone version of libphonenumber (the one that does not use any bundlers). I'm calling libphonenumber using Javascript and JQuery for example:

<script> function validateNumber(value){ return libphonenumber.isValidNumber(value,$("#countryCode").val()); } </script>

I found that the phone number "23423423423" is valid in several countries. I would like to use the extended version of the metada at least for Australia and New Zealand.

Is there a way I can customise the Libphonenumber Standalone version's metadata and use the "browser-build" so that I can add to my website ?

from libphonenumber-js.

catamphetamine avatar catamphetamine commented on August 17, 2024

from libphonenumber-js.

onlineautoparts avatar onlineautoparts commented on August 17, 2024

Sorry I've reworded my question, I hope is clear this time:

[EDITED]
Ok thanks for clearing that up.

I'm using the Standalone version of libphonenumber (the one that does not use any bundlers). I'm calling libphonenumber using Javascript and JQuery for example:

<script> function validateNumber(value){ return libphonenumber.isValidNumber(value,$("#countryCode").val()); } </script>

I found that the phone number "23423423423" is valid in several countries. I would like to use the extended version of the metada at least for Australia and New Zealand.

Is there a way I can customise the Libphonenumber Standalone version's metadata and use the "browser-build" so that I can add to my website ?

from libphonenumber-js.

catamphetamine avatar catamphetamine commented on August 17, 2024

For this case, follow the instructions in the Standalone section of the readme, and prior to building the bundle do:

npm run metadata:generate RU,US extended

See the runnable/generate.js file for reference.
That will probably work.

from libphonenumber-js.

Related Issues (20)

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.