Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
BHP UI library. A customised Bootstrap deployment with two themes, along with some extra components.
BHP UI library. A customised Bootstrap deployment with two themes, along with some extra components.
If you are using npm
or yarn
in your project, run
yarn add bhp-ui
to install this library. The required peer dependencies for the package (currently only bootstrap) will be listed, so install those too.
You can now reference the compiled CSS files in the css
directory, or access
the SCSS directly via the scss
directory.
Download the css/index-dark.css
or css/index-light.css
files and add them
to your static site. You need to add class="light-theme"
or
class="dark-theme"
to the root html
element of your project.
The SCSS is designed so that it can be included and extended within the context
of an active project. Two major entry points in scss/index-dark.scss
and
scss/index-light.scss
which may be sufficient for your needs, and which are
also provided as simple examples of how to use the SCSS.
If you want to customise the SCSS, you can create an scss
file in your
repository containing
@import '~bhp-ui/scss/themes/light';
@import '~bhp-ui/scss/0-root';
@import '~bhp-ui/scss/1-base';
.light-theme {
@import '~bhp-ui/scss/2-within-theme';
}
The order of the files is important and they are described below:
themes/light
: specifies the variables for the light theme;0-root
: includes reboot styles. Does not depend on any theme variables;1-base
: contains mixings and variables (no styles);2-within-theme
: contains the bulk of styles.FAQs
BHP UI library. A customised Bootstrap deployment with two themes, along with some extra components.
The npm package bhp-ui receives a total of 2 weekly downloads. As such, bhp-ui popularity was classified as not popular.
We found that bhp-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.