Giter Site home page Giter Site logo

CLI options? about node-yencode HOT 3 CLOSED

animetosho avatar animetosho commented on July 2, 2024
CLI options?

from node-yencode.

Comments (3)

animetosho avatar animetosho commented on July 2, 2024

This is just a library and has no CLI interface.

(I'm also not sure what a CLI would do as this is only really useful for uploaders/downloaders)

from node-yencode.

sntran avatar sntran commented on July 2, 2024

I think the CLI will be useful when the uploaders/downloaders are written in a language that does not interop with Node.js or C++.

With a CLI, I can at least npm install yencode into my project, then spawn a system process for the CLI to encode/decode a file.

I suppose I could do the same thing by writing a JS file calling this API, but it's essentially writing the CLI :) It would be nicer that your library directly supports it.

from node-yencode.

animetosho avatar animetosho commented on July 2, 2024

spawn a system process for the CLI to encode/decode a file.

That sounds rather inefficient for an application to do though.

Unfortunately, if you need it for your language, it needs to be ported across. I did consider making this more of a C library, which could ease porting a bit, but never got around to it. Realistically, there's already a C++ -> Node interface, so shouldn't be hard to adopt to another language; the main difficulty would probably be getting the build system to handle the compiler flags.

from node-yencode.

Related Issues (12)

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.