npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

bootstrap4-jade

v1.0.0-dev

Published

bootstrap4-jade ========================================

Downloads

3

Readme

bootstrap4-jade

Это библитека bootstrap 4 примесей для шаблонизатора jade.

Установка

  • Установка через bower: bower install bootstrap4-jade
  • Установка через npm: npm install bootstrap4-jade
  • Вы всегда можете скачать последнюю версию.

Бастрое начало

Подключаем библиотеку bower_components/bootstrap4-jade/src/_mixins.jade. Потом необходимо подключить bootstrap 4.

+css('Путь к стилям')
+js('Путь к скриптам')

Хочу обратить внимание что не нужно писать расширения файла.

Вы можете подключить bootstrap через CDN:

+bootstrap-css-cdn
+bootstrap-js-cdn
//- Возможно нам ещё понадобятся иконки
+font-awesome-cdn

Миксин bootstrap-js-cdn, подключит нам bootstrap и две зависимости jquery и tether.

Hello World!

doctype html
html(lang="en")
    +head
        +bootstrap-css-cdn
    body
        h1 Hello, world!
        
        +jquery-cdn
        +tether-cdn
        +bootstrap-js-cdn

На выходе мы получим:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">

    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
  </head>
  <body>
    <h1>Hello, world!</h1>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/tether/1.2.0/tether.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
  </body>
</html>

Довольно сильно сокращает код, не так ли? И это ещё не всё...

На последок

Я только начал заниматься разработкой этой библиотеки, и её пока не стоит использовать. Но всё же можно, к каждому миксину достаточно комментариев. Вскрывайте, читайте, пользуйтесь. А попозже я напишу документацию к коду.

Скачиваем библиотеку и смотрим примеры страниц.

  • Исходники в папке documentation/src/templates/
  • Html в documentation/templates/