# sat-common

> Библиотека базового функционала

Latest version **1.0.26** (published 2026-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install sat-common
pnpm add sat-common
yarn add sat-common
bun add sat-common
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.26 |
| Published | 2026-02-05 |
| First published | 2022-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 208.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Александр Желнин |
| Maintainers | kulibin_s |
| Keywords | tools |

## Links

- npm: https://www.npmjs.com/package/sat-common
- Repository: https://github.com/AlexanderZhelnin/angular-sat-common
- Homepage: https://www.youtube.com/channel/UCGntVzOD7faGCYbrUfd8PQg
- Issues: https://github.com/AlexanderZhelnin/angular-sat-common/issues
- npm.io page: https://npm.io/package/sat-common

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Recent versions

- 1.0.26 (latest) — 2026-02-05
- 1.0.25 — 2026-02-05
- 1.0.24 — 2026-02-03
- 1.0.23 — 2026-02-02
- 1.0.18 — 2023-10-02
- 1.0.17 — 2023-10-02
- 1.0.15 — 2023-07-14
- 1.0.14 — 2022-07-18
- 1.0.12 — 2022-04-12
- 1.0.9 — 2022-03-08
- 1.0.8 — 2022-03-02
- 1.0.6 — 2022-02-19
- 1.0.5 — 2022-02-19

## README

# SatCommon
Библиотека с базовым функционалом

[Исходный код](https://github.com/AlexanderZhelnin/angular-sat-common)

## pipes
- SafeHtmlPipe. Селектор 'safehtml' установка hml из кода
- SafeStylePipe. Селектор 'safestyle' установка стиля из кода
- SafeUrlPipe. Селектор 'safeurl' установка адреса из кода
- SkipPipe. Селектор 'skip' пропуск определённого количества элементов в массиве
- TakePipe. Селектор 'take' получение определённого количества элементов из массива
## services
- StringService сервис для работы со строками, в нём находится натуральная сортировка строк
```ts
compareStrings('10ff', '2ff') // => 1
```
```ts
naturalSort(['10ff', '2ff']) // => ['2ff', '10ff']
```
[![Видео](logo_68.png)](https://youtu.be/aEVe4uFnlnk)
## functions
- groupBy функция группировки по значению
```ts
groupBy([
  { id: 1, name: 'test1' },
  { id: 2, name: 'test1' },
  { id: 3, name: 'test2' },
], p => p.name);
// => { test1: [{ id: 1, name: 'test1' }, { id: 2, name: 'test1' }], test2: { id: 3, name: 'test2' } }
```
- deepClone функция глубокого копирования
```ts
deepClone({
  repository: {
    type: 'git',
    url: 'https://github.com/AlexanderZhelnin/angular-sat-common'
  },
  author: {
    name: 'Александр Желнин',
    url: 'https://www.youtube.com/channel/UCGntVzOD7faGCYbrUfd8PQg'
  }
})
```
## types
- DeepReadonly<T> тип глубокой иммутабельности
[![Видео](logo_114.png)](https://youtu.be/Kxe_o9l-b44)

## animations
- SHOW анимация для плавной показа новых элементов и плавного скрытий удаляемых элементов
- VISIBILITY анимация плавного скрытия видимости и плавного показа видимости

---
_Source: https://npm.io/package/sat-common · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
