https://github.com/tetherto/pear-apps-utils-pattern-search
https://github.com/tetherto/pear-apps-utils-pattern-search
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tetherto/pear-apps-utils-pattern-search
- Owner: tetherto
- License: apache-2.0
- Created: 2025-12-09T19:14:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-22T15:07:54.000Z (6 months ago)
- Last Synced: 2025-12-24T02:33:05.001Z (6 months ago)
- Language: JavaScript
- Size: 84 KB
- Stars: 0
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Notice: NOTICE
Awesome Lists containing this project
README
# pear-apps-utils-pattern-search
A simple utility to search for patterns in a list
## Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Usage Examples](#usage-examples)
- [Dependencies](#dependencies)
- [Related Projects](#related-projects)
## Features
- Case-insensitive pattern searching
- Handles null and undefined values safely
- Simple API with boolean return values
- Zero dependencies
- Lightweight and optimized for performance
- ESM module support
## Installation
```bash
npm install pear-apps-utils-pattern-search
```
## Usage Examples
```javascript
import { matchPatternToValue } from 'pear-apps-utils-pattern-search';
const pattern = 'hello';
const value = 'Hello, World!';
if (matchPatternToValue(pattern, value)) {
console.log('Pattern found in value');
} else {
console.log('Pattern not found in value');
}
```
## Dependencies
This package has no external dependencies.
## Related Projects
- [pearpass-app-mobile](https://github.com/tetherto/pearpass-app-mobile) - A mobile app for PearPass, a password manager
- [pearpass-app-desktop](https://github.com/tetherto/pearpass-app-desktop) - A desktop app for PearPass, a password
- [tether-dev-docs](https://github.com/tetherto/tether-dev-docs) - Documentations and guides for developers
## License
This project is licensed under the Apache License, Version 2.0. See the [LICENSE](./LICENSE) file for details.