Skip to content

rodacato/ptidy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This command line tool, process a web page for make it more readable and look organized, it return a string with the source code optimized for readability propose.

parameters:
  ‘-u’ or ‘--url’ : To define the string containing the site url in format http://site.com  
  ‘-p’ or ‘--path’ : To define the string containing the absolute path for the source code to optimize like /User/freshout/websites/index.html 
  no params : If no params are specified, the stdin will be used as input data

examples:

Process a webpage from site url
  node jsbeautifier -u http://gow.azendal.com
  node jsbeautifier --url http://gow.azendal.com			

Process a file with a valid source code
	node js beautifier -p Users/azendal/gow/index.html
	node js beautifier --path Users/azendal/gow/index.html

Using the stdin as input data
	echo '<html><head></head><body></body></html>' | node lib/beautify/beautifier.js

Custom Buildpack for heroku test page:
  heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

About

JsBeautify tester

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published