Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
burp-brightscript
Advanced tools
Burp is an independent open-source project, maintained exclusively by volunteers.
You might want to help! Get in touch via the slack group, or raise issues.
It's a simple tool for executing regex replacements on source code files, a bit like awk. The killer feature is that it understands brightscript syntax, so it knows what line and function it's in. It can be used from command line, or from a js environment (such as when using gulp for building)
npm install -g burp-brightscript
burpConfig.json
containing:{
sourcePath: "relative/or/absolute/path/of/your/source",
globPattern: "**/*.brs",
replacements: [
{
regex: "(^.*\?\s*\")",
replacement: '$1#FileName#.#FunctionName#(#LineNumber#) '
}
]
}
burp burpConfig.json
BurpProcessor
with the required json configprocessor.processFiles()
, which returns true if no errors were encountered. processor.warnings
, and processor.errors
contain any processing errors and warnings. import BurpProcessor from 'burp-brightscript';
config = {
sourcePath: targetPath,
globPattern: '**/*.brs',
replacements: [{
regex: '(^.*\\?\\s*\\")',
replacement: '$1#FileName#.#FunctionName#(#LineNumber#) '
}];
let result = processor.processFiles();
You can use the following constants in your regex replacements:
#FullPath#
- full path of file#LineNumber#
- line number of replacement#FileName#
- filename of replacement#FunctionName#
- function name of replacement#CommentLine#
- will result in the line being commented outI like the name. It doesn't mean anything.
I also made rLog and needed a tool that could process source files to insert the line number and function name. I figured this is a more generally useful way of doing it, which other's might leverage in their own tool-chains and build processes.
FAQs
lightweight processor for roku brightscript projects
The npm package burp-brightscript receives a total of 7 weekly downloads. As such, burp-brightscript popularity was classified as not popular.
We found that burp-brightscript 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.