Giter VIP home page Giter VIP logo

Comments (8)

vshymanskyy avatar vshymanskyy commented on July 17, 2024 1

Cool. Thanks for explanation!
How about just being able to work with any Node.js stream: https://nodejs.org/api/stream.html
SerialPort already supports that and they improve it further in release 5+

from node-modbus-serial.

yaacov avatar yaacov commented on July 17, 2024

Yes, it was :-)

But we wanted to make it easy for users to just have one requirement,
See: #56

I'm inclining to remove this dependency ( we do not enforce it in the code ... [1] ) but I also want users to have easy life ...

[1] https://github.com/yaacov/node-modbus-serial/blob/master/index.js#L656

from node-modbus-serial.

yaacov avatar yaacov commented on July 17, 2024

How about just being able to work with any Node.js stream:

sound great, can you make a pull request ?

from node-modbus-serial.

vshymanskyy avatar vshymanskyy commented on July 17, 2024

Probably - when I get to it ;)

from node-modbus-serial.

yaacov avatar yaacov commented on July 17, 2024

Probably - when I get to it ;)

have fun =^..^=

from node-modbus-serial.

yaacov avatar yaacov commented on July 17, 2024

Closing, as I do not have time to look at it now.

from node-modbus-serial.

emes avatar emes commented on July 17, 2024

Would you re-consider making serialport an optional dependency? Docker images become muuuch larger when serialport needs to be built from source, which is shame when using only tcp.

from node-modbus-serial.

yaacov avatar yaacov commented on July 17, 2024

@ems Thank you for this issue 👍

a - it's still optionals in the code: https://github.com/yaacov/node-modbus-serial/blob/master/index.js#L738

b - I think the only problem is only here https://github.com/yaacov/node-modbus-serial/blob/master/package.json#L41

c- Can you think of a mechanism that will keep the default, and let us an option to build leaner containers ?
e.g. package-no-serial-port.json, pckage.json.template build with some Makefile ... ?

p.s. you can send a pull request with the dockerfile if you think it's nice :-)

from node-modbus-serial.

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.