open-index/open-npm huggingface dataset:
npm package: @sabo99/git-convention
Description: Utilities for setup git convention (commitlint) using husky hooks
Author: sabo99
Latest version: 1.3.1

# @sabo99/git-convention

[![npm Package](https://img.shields.io/npm/v/@sabo99/git-convention?color=blue&style=flat-square)](https://www.npmjs.org/package/@sabo99/git-convention)
[![License](https://img.shields.io/npm/l/@sabo99/git-convention.svg)](https://github.com/sabo99/git-convention/blob/master/LICENSE)

🚀 **@sabo99/git-convention** is a simple CLI tool to set up Git conventions like Husky and Commitlint in your project.

## 📌 Features

✔ Automatically installs and configures **Husky** 🐶  
✔ Sets up **Commitlint** for commit message validation 📝  
✔ Works with any Node.js project 💡  

## 📦 Installation

Install globally using npm:

```sh
npm install -g @sabo99/git-convention
```

Or use `npx` to run it without installation:

```sh
npx @sabo99/git-convention init
```

## 🚀 Usage

To set up Git conventions, run:

```sh
npx git-convention init
```

This will:

- Install **Husky** and **Commitlint**
- Configure Husky hooks (`commit-msg`, `pre-commit`, `pre-push`)
- Add `.commitlintrc.json` to enforce conventional commits

## 📝 Git Commit Convention Examples

Follow the Conventional Commits standard:

```sh
feat(auth): add password reset functionality
fix(cart): resolve issue with item quantity update
refactor(utils): optimize data processing logic
chore(tests): update unit tests for new changes
docs(readme): update installation instructions
```

## 🛠 Configuration

### Customizing `.commitlintrc.json`

You can modify `.commitlintrc.json` to adjust commit message rules:

```json
{
  "extends": ["@commitlint/config-conventional"],
  "rules": {
    "header-max-length": [2, "always", 100],
    "type-enum": [
    2,
    "always",
    ["chore", "docs", "feat", "fix", "refactor", "revert", "style", "test"]
    ],
    "type-case": [2, "always", "lowercase"],
    "type-empty": [2, "never"],
    "scope-case": [2, "always", "kebab-case"],
    "scope-empty": [2, "never"],
    "subject-empty": [2, "never"],
    "subject-full-stop": [2, "never", "."]
  },
  ...
}
```

### Custom Husky Hooks

Modify `.husky/pre-commit` to add custom pre-commit scripts:

```sh
#!/usr/bin/env sh

. "$(dirname "$0")/_/husky.sh"

yarn lint
```

Modify `.husky/pre-push` to add custom pre-push scripts:

```sh
#!/usr/bin/env sh

. "$(dirname "$0")/_/husky.sh"

yarn test:cov
```

## 🤝 Contributing

Want to improve this package? Fork the repo and submit a PR! 🎉

1. **Fork the repo**
2. **Clone your fork**

   ```sh
   git clone https://github.com/sabo99/git-convention.git
   ```

3. **Install dependencies**

   ```sh
   npm install
   ```

4. **Make your changes and test**
5. **Submit a PR** 🚀

## 📝 License

This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.

## ⭐ Show Your Support

Give a ⭐ if you like this project!
npm package: @sabo99/node-utils
Description: utilities for node modules
Author: sabo99
Latest version: 1.1.0

# node-utils

Utilities for node modules

## Installation

```sh
npm i @sabo99/node-utils
```

## Usage

### Conditionals

```javascript
const Utils = require('@sabo99/node-utils');

// Check if a value is null
console.log(Utils.isNull(null)); // true

// Check if a value is a non-empty string
console.log(Utils.isNonEmptyString('Hello')); // true
```

### Helpers

```javascript
const Utils = require('@sabo99/node-utils');

// Generate a random number of length 5
console.log(Utils.generateRandomNumber(5)); // e.g., '12345'

// Generate a random string of length 8
console.log(Utils.generateRandomString(8)); // e.g., 'aBcDeFgH'
```

### Throwable

```javascript
const Utils = require('@sabo99/node-utils');

// Throws an error if the value is missing (null or undefined)
Utils.throwIfMissing(null, 'Value is missing'); // Throws an error

// Throws an error if the value is not a string
Utils.throwIfNotString(123, 'Value is not a string'); // Throws an error
```

## API

### Utils

- `isNull(value)`: Checks if a value is null.
- `isUndefined(value)`: Checks if a value is undefined.
- `isMissing(value)`: Checks if a value is either null or undefined.
- `isPresent(value)`: Checks if a value is present (not null or undefined).
- `isString(value)`: Checks if a value is a string.
- `isBoolean(value)`: Checks if a value is a boolean.
- `isFunction(value)`: Checks if a value is a function.
- `isArray(value)`: Checks if a value is an array.
- `isEqual(value1, value2)`: Checks if two values are equal.
- `isEmptyString(value)`: Checks if a value is an empty string.
- `isNonEmptyString(value)`: Checks if a value is a non-empty string.
- `isEmptyArray(value)`: Checks if a value is an empty array.
- `isNonEmptyArray(value)`: Checks if a value is a non-empty array.
- `isObject(value)`: Checks if a value is an object.
- `isEmptyObject(value)`: Checks if an object is empty (has no properties or symbols).

- `noop()`: A no-operation function that does nothing.
- `generateRandomNumber(length)`: Generates a random number of a specified length.
- `generateRandomString(length)`: Generates a random string of a specified length.

- `createThrowable(condition, type)`: Creates a throwable function based on a condition and type.
- `throwIfMissing(value, errorMessage, Err)`: Throws an error if the value is missing (null or undefined).
- `throwIfNotString(value, errorMessage, Err)`: Throws an error if the value is not a string.
- `throwIfNotObject(value, errorMessage, Err)`: Throws an error if the value is not an object.
- `throwIfNotArray(value, errorMessage, Err)`: Throws an error if the value is not an array.
npm package: @saboya/react-input-autosize
Description: Auto-resizing Input Component for React
Author: Jed Watson
Latest version: 2.2.4

React-Input-Autosize
====================

A text input for [React](http://facebook.github.io/react/index.html) that resizes itself to the current content.


## Demo & Examples

Live demo: [jedwatson.github.io/react-input-autosize](http://jedwatson.github.io/react-input-autosize/)

To run the examples locally, run:

```
npm install
npm start
```

Then open [localhost:8000](http://localhost:8000) in a browser.


## Installation

The easiest way to use React-Input-Autosize is to install it from NPM and include it in your own React build process (using Browserify, rollup, webpack, etc).

You can also use the umd build by including `dist/AutosizeInput.js` in your page. If you use this, make sure you have already included a umd React build.

```
npm install react-input-autosize --save
```


## Usage

React-Input-Autosize generates an input field, wrapped in a `<div>` tag so it can detect the size of its value. Otherwise it behaves very similarly to a standard React input.


```es6
import AutosizeInput from 'react-input-autosize';

<AutosizeInput
	name="form-field-name"
	value={inputValue}
	onChange={function(event) {
		// event.target.value contains the new value
	}}
/>
```

## Gotchas

### Changing the styles at runtime
The styles applied to the input are only copied when the component mounts. Because of this, subsequent changes to the stylesheet may cause size to be detected incorrectly.

To work around this, either re-mount the input (e.g. by providing a different `key` prop) or call the `copyInputStyles()` method after the styles change.

### CSP and the IE "clear" indicator
The input will automatically inject a stylesheet that hides IE/Edge's "clear" indicator, which otherwise breaks the UI. This has the downside of being incompatible with some CSP policies.

To work around this, you can pass the `injectStyles={false}` prop, but if you do this I *strongly* recommend targeting the `input` element in your own stylesheet with the following rule:

```css
input::-ms-clear {display: none;}
```

### Custom font sizes
If your input uses custom font sizes, you will need to provide the custom size to `AutosizeInput`.

```es6
<AutosizeInput
	name="form-field-name"
	value={inputValue}
	style={{ fontSize: 36 }}
	onChange={function(event) {
		// event.target.value contains the new value
	}}
/>
```

### Uncontrolled input
`AutosizeInput` is a [controlled input](https://facebook.github.io/react/docs/forms.html#controlled-components) and depends on the `value` prop to work as intended. It does not support being used as an uncontrolled input.

## License

Copyright (c) 2018 Jed Watson. [MIT](LICENSE) License.
npm package: @sabpaisa_2026/sabpaisa-aes-256-encryption
Description: AES-256-GCM encryption/decryption for browser and Node.js
Author: Abhishek Verma
Latest version: 1.0.0

# sabpaisa-aes-256-encryption

AES-256-GCM encryption/decryption with HMAC-SHA384 for Node.js, React (bundlers), and direct browser usage.

---

## Installation

```sh
npm install sabpaisa-aes-256-encryption
```

---

## Usage

### 1. Node.js

```js
import { encrypt, decrypt } from "sabpaisa-aes-256-encryption";
// or, for CommonJS:
// const { encrypt, decrypt } = require('sabpaisa-aes-256-encryption');

const plaintext = "This is a secret message!";
const auth_key = "base64-encoded-32-byte-key==";
const auth_iv = "base64-encoded-32-byte-iv==";

// Encrypt
const encrypted = encrypt(plaintext, auth_key, auth_iv);
console.log("Encrypted:", encrypted);

// Decrypt
const decrypted = decrypt(encrypted, auth_key, auth_iv);
console.log("Decrypted:", decrypted);
```

---

### 2. React / Bundlers (Webpack, Vite, etc.)

```js
import { encrypt, decrypt } from "sabpaisa-aes-256-encryption";

// Note: In the browser, these are async!
const plaintext = "This is a secret message!";
const auth_key = "base64-encoded-32-byte-key==";
const auth_iv = "base64-encoded-32-byte-iv==";

const encrypted = await encrypt(plaintext, auth_key, auth_iv);
console.log("Encrypted:", encrypted);

const decrypted = await decrypt(encrypted, auth_key, auth_iv);
console.log("Decrypted:", decrypted);
```

- Use `await` or `.then()` because encryption/decryption are async in the browser.

---

### 3. Direct Browser `<script>` Usage

1. **Include the browser global file** (copy `src/encryption.browser.js` and remove the `export` line, or use a dedicated UMD/global build):

```html
<script src="path/to/encryption.browser.global.js"></script>
<script>
  (async function () {
    const plaintext = "This is a secret message!";
    const auth_key = "base64-encoded-32-byte-key==";
    const auth_iv = "base64-encoded-32-byte-iv==";

    const encrypted = await sabpaisaEncryption.encrypt(
      plaintext,
      auth_key,
      auth_iv,
    );
    console.log("Encrypted:", encrypted);

    const decrypted = await sabpaisaEncryption.decrypt(
      encrypted,
      auth_key,
      auth_iv,
    );
    console.log("Decrypted:", decrypted);
  })();
</script>
```

---

## Key & IV Requirements

- `auth_key` must be a **base64-encoded 32-byte (256-bit) key**.
- `auth_iv` must be a **base64-encoded 32-byte value** (only the first 12 bytes are used as IV).

---

## Notes

- **Node.js:** Synchronous API.
- **Browser/React:** Asynchronous API (returns Promise).
- **Direct `<script>`:** Use `sabpaisaEncryption.encrypt` and `sabpaisaEncryption.decrypt` on the global object.

---

## License

MIT

---

## Author

**Abhishek Verma (Sabpaisa)**  
[LinkedIn](https://www.linkedin.com/in/786abhishekverma/)
npm package: @sabretooth/create-sabretooth-app
Description: create-sabretooth-app
Author: 刘泽锦
Latest version: 0.0.1

# `@sabretooth/create-sabretooth-app`

> TODO: description

## Usage

```
const createSabretoothApp = require('@sabretooth/create-sabretooth-app');

// TODO: DEMONSTRATE API
```