
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
A pygments wrapper for node.js
curl http://npmjs.org/install.sh | sh
[sudo] npm install pygments
jshtmlvar highlight = require('pygments').colorize;
highlight('puts "Hello World"', 'ruby', 'console', function(data) {
console.log(data);
});
var highlight = require('pygments').colorize;
highlight('/home/pkumar/package.json', null, 'html', function(data) {
console.log(data);
});
If you want to highlight string /home/pkumar/package.json itself,
var highlight = require('pygments').colorize;
highlight('/home/pkumar/package.json', null, 'html', function(data) {
console.log(data);
}, {'force': true});
All of the pygments tests are written in vows, and cover all of the use cases described above.
npm test
See LICENSE for details.
Pavan Kumar Sunkara
FAQs
A pygments wrapper for nodejs
The npm package pygments receives a total of 178 weekly downloads. As such, pygments popularity was classified as not popular.
We found that pygments 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.