GithubHelp home page GithubHelp logo

sherifghoz / find-phone-model Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bogdancar/find-phone-model

0.0 0.0 1.0 597 KB

Simple library to lookup a list of mobile devices

JavaScript 100.00%

find-phone-model's Introduction

find-phone-model

This lib is born out of frustration of not finding a reliable source to search for a phone model name starting from a browser user_agent result. For the time being, only the Android models accepted on Play Store are on the list. For the future revisions, I will try to add the Apple models. I will try to keep the list of models up to date as often as I can.

Usage

You can use the lib either on front or back-end where you need to search for a phone model. Given the fact that the list of phones is contained inside the library, the suggested use is on the server. If you decide to use it on client, notice the overhead you are transporting. To install the lib use yarn add find-phone-model or npm i find-phone-model The lib exposes findPhone(searchString) function with the searchString parameter and returns an array of json objects with the models after appling the search criteria. If no model is found with the given search criteria, an empty array is returned. The returned answer is in the form of:

[
{
   "Retail Branding": "LGE",
   "Marketing Name": "LG G5",
   "Device": "h1",
   "Model": "LG-H831"
}
]

To have the latest phone-list on your solution, don't forget to update the library with yarn upgrade find-phone-model or npm update find-phone-model

For a fully functional implementation on Angular 4, look at my repository find-phone-model-demo

find-phone-model's People

Contributors

helloendoftheworld avatar bogdancar avatar

Forkers

pushbots

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.