Coder Social home page Coder Social logo

Command-line tool about typeset HOT 5 CLOSED

sebastien avatar sebastien commented on August 20, 2024
Command-line tool

from typeset.

Comments (5)

davidmerfield avatar davidmerfield commented on August 20, 2024

Making this support usage from the command line would be straightforward. It would involve extra conditionals to accept arguments passed via the command line, but installation and usage would look something like this:

npm install -g typeset
typeset index-in.html index-out.html

I'd be happy to review a pull request if you'd like to make these modifications yourself – otherwise I'll add it to the list of things to do!

from typeset.

sebastien avatar sebastien commented on August 20, 2024

Some recommendations to make the command line tool UNIX-friendly

  • use typeset-js or something similar as typeset is reserved in Bash
  • support - option for stdin
  • by default output to stdout

I don't have much experience with node, but that might be a fun learning experience.

from typeset.

davidmerfield avatar davidmerfield commented on August 20, 2024

Thanks @faheempatel for your pull request. I'll keep this issue open until I work out how to change the tool's name from typeset, since it's reserved.

from typeset.

davidmerfield avatar davidmerfield commented on August 20, 2024

I'd also like it accept input via stdin. Will investigate

from typeset.

faheempatel avatar faheempatel commented on August 20, 2024

No worries, thanks for making it :)
You can change the name of the tool by changing the key here: https://github.com/davidmerfield/Typeset/blob/master/package.json#L7

from typeset.

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.