Gathering detailed insights and metrics for roku-smart-label
Gathering detailed insights and metrics for roku-smart-label
Gathering detailed insights and metrics for roku-smart-label
Gathering detailed insights and metrics for roku-smart-label
BBEdit style label, allowing to mix different fonts and images. Reference implementation, looking for contributors
npm install roku-smart-label
Typescript
Module System
Node Version
NPM Version
Brightscript (100%)
Total Downloads
721
Last Day
2
Last Week
7
Last Month
15
Last Year
129
MIT License
3 Stars
37 Commits
2 Forks
4 Watchers
1 Branches
4 Contributors
Updated on May 01, 2025
Latest Version
0.2.1
Package Id
roku-smart-label@0.2.1
Unpacked Size
13.74 kB
Size
4.67 kB
File Count
6
NPM Version
6.13.4
Node Version
10.19.0
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
75%
7
Compared to previous week
Last Month
0%
15
Compared to previous month
Last Year
11.2%
129
Compared to previous year
1
BBEdit style label, allowing to mix different fonts and images. Reference implementation, looking for contributors
Use the ropm package manager for roku
1ropm install roku-smart-label
suggestion: use a shorter prefix:
1ropm install sl@npm:roku-smart-label
Follow these steps:
Note that updating any property causes a brute force reload of all the data
without prefix:
<rokusmartlabel_SmartLabel
id="label"
width='900' />
using sl prefix:
<sl_SmartLabel
id="label"
width='900' />
without prefix:
label = createObject("roSGNode", "rokusmartlabel_SmartLabel")
label.width = 900
using sl prefix:
label = createObject("roSGNode", "sl_SmartLabel")
label.width = 900
The following styles are supported
style name | format |
---|---|
default | text |
italic | text |
bold | text |
header1 | #text# |
header2 | ##text## |
header3 | ###text### |
Assign font styles by setting label. style FontSettings (e.g. label.boldFontSettings
), to an aa like:
{
name: "font:MediumBoldSystemFont"
size: 130
color: "#ffffff"
}
Set m.allFontSettings
to an assocarray, with the styles you wish to set
m.label.allFontSettings = {
header1Font: {
name: "font:MediumBoldSystemFont"
size: 130
}
header2Font: {
name: "font:MediumBoldSystemFont"
size: 60
}
header3Font: {
name: "font:MediumSystemFont"
size: 50
}
font: {
name: "font:MediumSystemFont"
size: 30
}
italicFont: {
name: "font:MediumBoldSystemFont"
size: 32
}
boldFont: {
name: "font:MediumSystemFont"
size: 34
} }
Label supports template substitution, of values in the form text ${KEY} more text
. To drive the template system, simply set the label.values
to an assocarray, as follows:
{
aKey: "value1"
anotherKey: "value2"
}
You can also include posters in your label. Provide an instance of a poster, configured how you wish it to appear in your values:
poster = createObject("roSGnode", "Poster")
poster.width =40
poster.height = 40
poster.uri= "http:/example.com/image.png"
{
aKey: "value1"
anotherKey: poster
}
' create and configure your label
' set values
' then set text
text = "\n#TITLE1:#"
text += "\n##TITLE2:##"
text += "\n###TITLE3:###"
text += "\n*bold text here*"
text += "\n_italic text here_"
text += "\nregular text"
text += "\nposter 1 ${so1} poster 2 ${so2} poster 3 ${so3}"
m.label.text = text
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
10 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More