![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
prettydiff
Advanced tools
Readme
A language aware diff, beautification, and minification tool.
git clone https://github.com/prettydiff/prettydiff.git
cd prettydiff
npm install typescript -g
npm install eslint -g
tsc --pretty
node js/services build nocheck
npm install typescript -g
npm install eslint -g
npm install prettydiff -g
prettydiff build nocheck
The application runs on the terminal with Node.js and in a web browser.
Executing in a terminal shell is powerful when you need access to additional tools, the local file system, or wish to integrate Pretty Diff output into other application tasks. The application comes with some additional utilities not available to the browser, such as: hashing, base64 encoding, file system tools, and other features.
prettydiff commands
(global) or node js/services commands
(local) for a list of available commands.prettydiff commands base64
(global) or node js/services commands base64
(local)node js/services beautify source:myFile.js --verbose
Pretty Diff is written in TypeScript, and so once built runs directly in all modern web browsers.
To get started immediately simply navigate your browser to the project's index.xhtml file in the local filesystem. Browsers restrict some capabilities when executing web applications from the file scheme. The included index.xhtml has all supported options dynamically built-in with updated documentation.
To run the web tool in a browser with all capabilities launch a local web server with this command: prettydiff server
(global) or node js/services server
(local) and then in your web browser go to http://localhost:9001. This features a handy file system watcher and a web sockets service for users wanting to experiment with the code. Once the server is active and the page is open in a web browser any changes to the code will automatically rebuild the project and reload the page.
To run the application as a third party application in the browser use the js/thirdparty.js file. See the third party demo for an example. This provides all the necessary code in a single file without any DOM bindings.
For supported option documentation you may read the documentation.xhtml file in a browser, options.md markdown file, or use these commands on the terminal:
prettydiff options
(global) or node js/services options
(local)prettydiff option mode
(global) or node js/services options mode
(local)prettydiff options mode:diff api:node
(global) or node js/services options mode:diff api:node
(local)FAQs
A language aware diff tool.
The npm package prettydiff receives a total of 6,050 weekly downloads. As such, prettydiff popularity was classified as popular.
We found that prettydiff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.