Code Monkey home page Code Monkey logo

node-beautifier's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-beautifier's Issues

Stdin for piping support

It would be really useful if this utility would accept content from Stdin optionally in place of the path argument. This would allow for piping of content from other programs such as Curl or Httpie.

For this to work it may be necessary to include another optional argument for defining the content type (html, js, css). This option would be nice to have regardless in potential situations where the content you are working with is in a file that does not have a proper extension.

Examples:
curl -s http://code.jquery.com/jquery-1.11.0.min.js | beautifier -t js

curl -s http://code.jquery.com/jquery-1.11.0.min.js | beautifier -t js > jquery-1.11.0.js

beautifier -t js file-with-no-ext

Write output

Would be nice to allow writing back to the input file.

eg, Someone may want to change a whole bunch of files in DIR. Something like

beautifier -o *.css

could be awesome.

duplicate output

installed this via npm, had to sym link my homebrew installed node to /usr/bin/node to get it to work, but now when I run

beautifier myfile.js

I get two lots of output. Any ideas?

JSON support

would be helpful.

Thanks for this tool anyway.

Broken for html. :(

TypeError: Property 'beauty' of object # is not a function
at /Users/mrobben/devproj/sold-backend/node_modules/beautifier/bin/beautifier.js:3:478
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)

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.