GithubHelp home page GithubHelp logo

Node.js port? about parser-php HOT 13 CLOSED

zeno avatar zeno commented on June 18, 2024
Node.js port?

from parser-php.

Comments (13)

mariotsi avatar mariotsi commented on June 18, 2024 1

I made a Node.js version because I can't find any other library with this grade of detection rate. You can find it here https://www.npmjs.com/package/which-browser

from parser-php.

NielsLeenheer avatar NielsLeenheer commented on June 18, 2024

Thanks!

I haven't had any request for a Node.js version, but it might be interesting to do.

As for testing, I am actually working on unit testing. I am still trying to find the right way, because I rather not do testing on all unique UA strings I've collected. I'm still trying to determine the correct subset that is representative for the all UA strings.

from parser-php.

NielsLeenheer avatar NielsLeenheer commented on June 18, 2024

I'm right in the middle of adding a proper test suite.

from parser-php.

2beers avatar 2beers commented on June 18, 2024

+1 for a nodejs port

from parser-php.

timaschew avatar timaschew commented on June 18, 2024

why nodejs?

If I understand it right, you don't need any server to handle it.
You already provide a bower solution, right? And it works standalone (without any php)?
So then you can do everything in the client.

BTW: I would do a note at the beginning of the readme that you don't need php.
https://github.com/WhichBrowser/WhichBrowser#requirements this is not true since you can use bower Javascript / client only

from parser-php.

DoctorDimon avatar DoctorDimon commented on June 18, 2024

+1 for a nodejs port

from parser-php.

NielsLeenheer avatar NielsLeenheer commented on June 18, 2024

@timaschew Actually, you do need PHP. The detection is server side, but the results can be used client side.

from parser-php.

 avatar commented on June 18, 2024

+1 for a JS port.

I'm guessing the only reason for the backend component is the sheer amount of data that would have to be sent to the client to extrapolate the proper version ?

from parser-php.

c1moore avatar c1moore commented on June 18, 2024

+1 for Nodejs port

from parser-php.

baptistebriel avatar baptistebriel commented on June 18, 2024

+1

from parser-php.

knutole avatar knutole commented on June 18, 2024

👍

from parser-php.

NielsLeenheer avatar NielsLeenheer commented on June 18, 2024

I'm not sure I'll have time for a Node.js port at this time. But I'll leave this bug open as a reminder.

from parser-php.

NielsLeenheer avatar NielsLeenheer commented on June 18, 2024

I'n closing this bug now as I don't have time to do a Node.js port in the foreseeable future.

from parser-php.

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.