Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@thednp/bootstrap.native

Package Overview
Dependencies
2
Maintainers
1
Versions
17
Issues
File Explorer

Advanced tools

@thednp/bootstrap.native

Native JavaScript for Bootstrap

    5.0.0-alpha1latest
    Github

Version published
Maintainers
1
Weekly downloads
5
increased by66.67%

Weekly downloads

Changelog

Source

TypeScript version alpha version

5.0.0 Changes

Typescript

All components, utilities, tooling, testing is 100% TypeScript sourced.

Tooltip/Popover

  • simplified Tooltip/Popover positioning code
  • deprecated the container option

Other

  • updated tests
  • updated dependencies
  • updated tooling, replaced Rollup with Vite
  • added Prettier
  • code cleanup and minor fixes

Readme

Source

BSN

Coverage Status ci NPM Version jsDeliver CDNJS cypress version typescript version vite version prettier version

The faster, lighter and more compact set of JavaScript components for Bootstrap 5, free from major dependecies such as jQuery, Popper. The bootstrap.native library is available on npm, CDN and comes packed with strong TypeScript definitions, Cypress powered tests and other goodies.

The library is around 39Kb minified and around 12Kb gZipped. See the demo for components guidelines and examples, or the Wiki/How to use on how to install and use the library.

Wiki

Check out the bootstrap.native Wiki pages, they're updated with almost every new commit:

  • Acknowledgements - there are similarities and differences with the original library, good to know for maximizing your workflow.
  • How to use - An in depth guide on how to use the library.
    • CDN Links - use CDN links available on jsdelivr and cdnjs
    • Locally Hosted - download and copy in your project assets/js folder, then use proper markup to enable BSN on your pages
    • ES6+ Example - modern application would like you to import BSN from "bootstrap.native"
    • NPM Installation - just execute npm install bootstrap.native or mark it as dependency and take it from there
    • Custom Builds - use rollup build scripts to create your own custom builds, only with the components you need
    • Dynamic Content - use the library callbacks with your turbolinks:load, mount, load and similar events
    • RequireJS/CommonJS - NodeJS applications would like you to const BSN = require("bootstrap.native")
    • Factory Methods - for NodeJS apps you need to have document and window in scope
  • Browser support - Enable legacy browsers support via polyfills.
  • FAQs - A short list of frequent asked questions regarding the use of the library.
  • About - Learn about the bootstrap.native project, goals and motivations.

Contributors

  • Full contributors list here. Thanks!

License

The BSN library is released under the MIT license.

Keywords

FAQs

Last updated on 26 Dec 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc