open-index/open-npm huggingface dataset:
npm package: @mertcankocak/core-project
Description: React TypeScript component library built with Vite
Latest version: 2.7.0

# Core Project

React TypeScript component library built with Vite.

## Installation

```bash
npm install @mertcankocak/core-project
```

## Peer Dependencies

Bu paket aşağıdaki paketleri peer dependency olarak gerektirir:

```bash
npm install react react-dom yup
```

## Usage

### Yup Validators

#### T.C. Kimlik Numarası

Zorunluluk dışarıdan belirlenir. `required` belirtilmezse optional olur (varsayılan).

```typescript
import * as yup from 'yup'
import { tcKimlikNoSchema } from '@mertcankocak/core-project'

// Optional (varsayılan)
const optionalSchema = yup.object({
  tcKimlikNo: tcKimlikNoSchema()
})

// Required
const requiredSchema = yup.object({
  tcKimlikNo: tcKimlikNoSchema({ required: true })
})

// Özel mesajlarla
const customSchema = yup.object({
  tcKimlikNo: tcKimlikNoSchema({
    required: true,
    message: 'Geçersiz T.C. kimlik numarası',
    requiredMessage: 'T.C. kimlik numarası boş bırakılamaz'
  })
})
```

#### Regex ve Manuel Validasyon

```typescript
import { 
  TC_KIMLIK_NO_REGEX, 
  validateTCKimlikNo 
} from '@mertcankocak/core-project'

// Regex kontrolü
const isValid = TC_KIMLIK_NO_REGEX.test('12345678901')

// Algoritma kontrolü
const isValid = validateTCKimlikNo('12345678901')
```

## Kullanım Örnekleri

Detaylı kullanım örnekleri için [USAGE_EXAMPLES.md](./USAGE_EXAMPLES.md) dosyasına bakın.

### React Hook Form ile

```typescript
import { useForm } from 'react-hook-form'
import { yupResolver } from '@hookform/resolvers/yup'
import * as yup from 'yup'
import { tcKimlikNoSchema } from '@mertcankocak/core-project'

const schema = yup.object({
  name: yup.string().required(),
  tcKimlikNo: tcKimlikNoSchema(), // Optional (varsayılan)
})

function MyForm() {
  const { register, handleSubmit } = useForm({
    resolver: yupResolver(schema),
  })
  
  // ...
}
```

### Formik ile

```typescript
import { Formik } from 'formik'
import * as yup from 'yup'
import { tcKimlikNoSchema } from '@mertcankocak/core-project'

const schema = yup.object({
  tcKimlikNo: tcKimlikNoSchema({ required: true }), // Required
})
```

## Development

```bash
# Install dependencies
npm install

# Build for production
npm run build

# Type check
npm run type-check
```

## Building as NPM Package

```bash
npm run build
```

This will create a `dist` folder with:
- `core-project.es.js` - ES module format
- `core-project.umd.js` - UMD format
- `index.d.ts` - TypeScript declarations
npm package: @mertcanureten/node-waf
Description: Node.js Web Application Firewall - OWASP Top 10 protection with adaptive learning and anomaly detection
Author: Mertcan Ureten
Latest version: 0.3.1

# Node-WAF

Open Source Web Application Firewall for Node.js - A comprehensive, modular, and community-driven solution against OWASP Top 10 attack vectors.

## 🚀 Features

- **Adaptive Learning Mode**: Learns from application traffic to minimize false positive rates
- **Modular Architecture**: Choose security modules based on your needs
- **OWASP Top 10 Protection**: XSS, SQLi, NoSQLi, ReDoS and more
- **Multi-Framework Support**: Express, Koa, Fastify
- **Community Rules**: Continuously updated rule sets
- **Prometheus Integration**: Metrics and monitoring
- **Zero Configuration**: Ready to use with default settings

## 📦 Installation

```bash
npm install @mertcanureten/node-waf
```

## 🎯 Quick Start

```javascript
const express = require('express');
const waf = require('@mertcanureten/node-waf');

const app = express();

// Enable WAF
app.use(waf());

app.get('/', (req, res) => {
  res.json({ message: 'Secure API!' });
});

app.listen(3000);
```

## 🔧 Advanced Usage

```javascript
const waf = require('@mertcanureten/node-waf');

app.use(waf({
  modules: ['xss', 'sqli', 'ratelimit'],
  adaptiveLearning: true,
  dryRun: false,
  threshold: 10
}));
```

## 📊 Monitoring

```javascript
// Stats endpoint
app.get('/waf/stats', waf.stats());

// Prometheus metrics
app.get('/metrics', waf.metrics());
```

## 🛡️ Supported Attack Types

- **XSS (Cross-Site Scripting)**
- **SQL Injection**
- **NoSQL Injection**
- **GraphQL Injection**
- **ReDoS (Regular Expression Denial of Service)**
- **Rate Limiting**
- **Header Security**

## 📈 Roadmap

- [x] v0.1 - Express middleware and basic rules
- [x] v0.2 - Anomaly scoring and config file support
- [x] v0.3 - Adaptive learning mode and Prometheus
- [ ] v1.0 - Multi-framework support and community rules

## 🤝 Contributing

This project is open source! We welcome your contributions.

## 📄 License

MIT License

## 🔗 Links

- [GitHub](https://github.com/mertcanureten/node-waf)
- [NPM](https://www.npmjs.com/package/@mertcanureten/node-waf)
- [Documentation](https://github.com/mertcanureten/node-waf#readme)
npm package: @mertozyilmazz/react-native-flash
Description: It helps to turn the phone's flash on and off.
Author: Mert Ozyilmaz
Latest version: 1.0.3

# react-native-flash

Simple API to turn on and off flash in react native

[![npm version](https://img.shields.io/npm/v/@mertozyilmazz/react-native-flash.svg?style=flat-square)](https://www.npmjs.com/package/@mertozyilmazz/react-native-flash)
[![npm downloads](https://img.shields.io/npm/dm/@mertozyilmazz/react-native-flash.svg?style=flat-square)](https://www.npmjs.com/package/@mertozyilmazz/react-native-flash)

## Installation

    npm install @mertozyilmazz/react-native-flash
	or
	yarn add @mertozyilmazz/react-native-flash

## Usage

In your `*.js`:

```javascript
	import Flash from '@mertozyilmazz/react-native-flash'

	Flash.turnOnFlash() // turn on flash

	Flash.turnOffFlash() // turn off flash

	/*Has flash checks if the phone has flash available.
		Since all communication between react native and native modules is asychrounous, it takes a success callback, and failure callback. atm both callbacks are necessary.

		*/
	Flash.hasFlash(function(){
		Flash.turnOnFlash()
	},function(){
		alert("You do not have flash")
	})
})
```