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 🙏

© 2026 – Pkg Stats / Ryan Hefner

bem-core

v5.0.0

Published

bem-core Library

Readme

Библиотека BEM Core

bem-core — это библиотека с открытым кодом, которая предоставляет набор блоков для разработки веб-интерфейсов. Содержит необходимый минимум для разработки клиентского JS и HTML-шаблонов.

CI GitHub Release

Примечание. Информация о библиотеке в более информативном виде доступна на bem.info. This README is also available in English.

Содержание

Дополнительная информация

Уровни переопределения

  • common.blocks — поддержка всех устройств и браузеров;
  • desktop.blocks — поддержка всех десктопных браузеров;
  • touch.blocks — реализация специфических особенностей для touch-платформ.

Блоки

  • i-bem — базовый блок с хелперами для JS и HTML;
  • i-bem-dom — базовый блок с хелперами для HTML;
  • strings — хелперы для JS-строк;
  • objects — хелперы для JS-объектов;
  • functions — хелперы для JS-функций;
  • events — JS-события;
  • uri — работа с URI и строкой запроса;
  • tick — глобальный таймер;
  • idle — IDLE-событие;
  • next-tick — полифил для nextTick/setTimeout(0, ...);
  • inherit — ООП-хелперы;
  • jquery — jQuery;
  • clearfix — CSS-трюк clearfix;
  • identify — идентификация JS-объектов;
  • cookie — хелперы для работы с браузерными куками;
  • dom — хелперы для работы с DOM;
  • loader — загрузчик для JS-файлов;
  • ua — определение возможностей браузера;
  • uri — декодирование строки из формата URI;
  • keyboard — хелперы для работы с клавиатурой;
  • page — скелет для html/head/body.

Использование

Установите как npm-зависимость:

npm install bem-core@5

jQuery 4 — peer-зависимость, установите рядом:

npm install jquery@^4.0.0

Поддерживаемые браузеры

  • Google Chrome (последняя версия)
  • Firefox (последняя версия)
  • Safari (последняя версия)
  • Edge (последняя версия)

Технологии

  • vanilla.js + browser.js;
  • DEPS;
  • bemhtml;
  • bemtree.

API

Автосгенерированную документацию на JavaScript API блоков (JSDoc) можно посмотреть на bem.info. Например, для блока i-bem она доступна по ссылке https://ru.bem.info/platform/libs/bem-core/current/desktop/i-bem/#jsdoc

Разработка

Рабочая копия

  1. Получаем исходники:

    git clone -b v5 git://github.com/bem/bem-core.git
    cd bem-core
  2. Устанавливаем зависимости (требуется Node.js 20+):

    npm install
  3. Запускаем линтер:

    npm run lint
  4. Запускаем тесты:

    npm test              # серверные тесты (node:test)
    npm run test:browser  # браузерные тесты (Playwright)
    npm run test:all      # все тесты
  5. Собираем:

    npm run build         # desktop + touch платформы

Команда основной разработки

Лицензия

© 2012 YANDEX LLC. Код лицензирован Mozilla Public License 2.0.