Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/bootstrap
Advanced tools
@types/bootstrap provides TypeScript type definitions for the Bootstrap library, allowing developers to use Bootstrap with TypeScript and benefit from type checking and autocompletion.
Modal
This feature allows you to create and control Bootstrap modals using TypeScript. The code sample demonstrates how to initialize a modal with specific options.
const myModal = new bootstrap.Modal(document.getElementById('myModal'), { keyboard: false });
Tooltip
This feature allows you to create and manage tooltips using TypeScript. The code sample shows how to initialize tooltips for elements with the data-bs-toggle attribute.
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
const tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
Carousel
This feature allows you to create and control carousels using TypeScript. The code sample demonstrates how to initialize a carousel with specific options.
const myCarousel = document.querySelector('#myCarousel');
const carousel = new bootstrap.Carousel(myCarousel, {
interval: 2000,
wrap: false
});
@types/jquery provides TypeScript type definitions for jQuery. It is similar to @types/bootstrap in that it allows developers to use jQuery with TypeScript, benefiting from type checking and autocompletion. However, it focuses on jQuery rather than Bootstrap.
@types/popper.js provides TypeScript type definitions for Popper.js, a library used for positioning tooltips and popovers. It is often used in conjunction with Bootstrap but focuses specifically on positioning elements, unlike @types/bootstrap which covers a broader range of UI components.
@types/react-bootstrap provides TypeScript type definitions for React-Bootstrap, a library that offers Bootstrap components as React components. It is similar to @types/bootstrap but is specifically designed for use with React.
npm install --save @types/bootstrap
This package contains type definitions for bootstrap (https://getbootstrap.com/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bootstrap.
These definitions were written by denisname, Piotr Błażejewicz, Martin Badin, Kyle Tsang, and Luke Nelson.
FAQs
TypeScript definitions for bootstrap
The npm package @types/bootstrap receives a total of 409,863 weekly downloads. As such, @types/bootstrap popularity was classified as popular.
We found that @types/bootstrap 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.