sindresorhus / awesome-nodejs

:zap: Delightful Node.js packages and resources
https://node.cool
Creative Commons Zero v1.0 Universal
57.83k stars 5.81k forks source link

Add BBob to Parsing #1126

Closed JiLiZART closed 2 years ago

JiLiZART commented 3 years ago

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖

⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆ BBob is a tool to parse and transform BBCode written in pure javascript, no dependencies

Basic usage

npm i @bbob/core @bbob/html @bbob/preset-html5
import bbobHTML from '@bbob/html'
import presetHTML5 from '@bbob/preset-html5'

const processed = bbobHTML(`[i]Text[/i]`, presetHTML5())

console.log(processed); // <span style="font-style: italic;">Text</span>
sindresorhus commented 2 years ago

Thanks for the suggestion. It looks good, but I'm unfortunately going to pass on this one as it's a bit too niche. If someone needs BBCode handling, they can just search for it on npm. The intent of the list is to gather best resources for something most developers will need.