open-index/open-npm huggingface dataset:
npm package: @shesath/ui
Description: ![npm version](https://img.shields.io/npm/v/@shesath/ui?color=blue) ![License](https://img.shields.io/npm/l/@shesath/ui) ![Downloads](https://img.shields.io/npm/dt/@shesath/ui)
Author: shesh
Latest version: 1.1.3

# @shesath/ui

![npm version](https://img.shields.io/npm/v/@shesath/ui?color=blue)
![License](https://img.shields.io/npm/l/@shesath/ui)
![Downloads](https://img.shields.io/npm/dt/@shesath/ui)

A lightweight JavaScript utility library providing basic mathematical operations such as sum and difference. Perfect for small projects or learning purposes.

---

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [API Reference](#api-reference)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
- [Author](#author)

---

## Features

- Simple and easy-to-use functions
- Zero dependencies
- Lightweight and fast
- Supports both CommonJS and ES Modules

---

## Installation

Install via **npm**:

```bash
npm install @shesath/ui
```

Or via **yarn**:

```bash
yarn add @shesath/ui
```

---

## Usage

### CommonJS

```javascript
const { Sum, Diff } = require('@shesath/ui');

console.log(Sum(5, 3));   // Output: 8
console.log(Diff(5, 3));  // Output: 2
```

### ES Modules

```javascript
import { Sum, Diff } from '@shesath/ui';

console.log(Sum(10, 7));   // Output: 17
console.log(Diff(10, 7));  // Output: 3
```

---

## API Reference

### `Sum(x, y)`

Returns the sum of two numbers.

**Parameters:**

| Name | Type   | Description    |
|------|--------|----------------|
| x    | Number | First number   |
| y    | Number | Second number  |

**Returns:** `Number` – Sum of `x` and `y`.

---

### `Diff(x, y)`

Returns the difference between two numbers.

**Parameters:**

| Name | Type   | Description  |
|------|--------|-------------|
| x    | Number | Minuend     |
| y    | Number | Subtrahend  |

**Returns:** `Number` – Difference between `x` and `y`.

---

## Examples

```javascript
import { Sum, Diff } from '@shesath/ui';

console.log(Sum(15, 25));    // 40
console.log(Diff(15, 25));   // -10

console.log(Sum(-5, 20));    // 15
console.log(Diff(50, 20));   // 30
```

---

## Contributing

Contributions are always welcome! To contribute:

1. Fork the repository
2. Create your feature branch:
   ```bash
   git checkout -b feature-name
   ```
3. Make your changes
4. Commit your changes:
   ```bash
   git commit -m "Add new feature"
   ```
5. Push to the branch:
   ```bash
   git push origin feature-name
   ```
6. Open a Pull Request

Please follow standard GitHub etiquette and write descriptive commit messages.

---

## License

This project is licensed under the **MIT License** – see the [LICENSE](LICENSE) file for details.

---

## Author

**Shesh** – [your.email@example.com](mailto:your.email@example.com)  
Project Link: [https://github.com/username/ui](https://github.com/username/ui)
npm package: @shetharp/gatsby-theme-candor
Description: Gatsby Theme Candor is a simple and honest theme that will help you set up a production-grade website in no time.
Author: Arpit Sheth
Latest version: 0.1.5

# gatsby-theme-candor

Gatsby Theme Candor is a simple and honest theme that will help you set up a production-grade website in no time.

Out of the box, it provides support for Typescript, MDX, and a custom theme built using the `theme-ui` spec.
It also comes pre-configured to support a blog, frontmatter, syntax highlighting in code blocks, and responsive images.

### 🐨 View [Demo Site →](https://shetharp.github.io/gatsby-theme-candor/)

## Installation

1. Install the theme

```shell
npm i --save @shetharp/gatsby-theme-candor
# or
yarn add @shetharp/gatsby-theme-candor
```

2. Add the theme to your `gatsby-config.js` files

```js
// gatsby-config.js

module.exports = {
  plugins: ["@shetharp/gatsby-theme-candor"],
};
```

3. Create `.mdx` files in your `src/pages` and `src/posts` folders.

<!-- prettier-ignore-start -->
```mdx
// pages/index.mdx

---
title: Hello World! This is a frontmatter title.
author: Arlo Medi
date: 2020-07-30
---

# Hello World!

Lorem ipsum dolor sit amet.
```
<!-- prettier-ignore-end -->

## Features

This Gatsby theme lets you easily set up a website with pages and blog posts from `.mdx` files.

- Pages are sourced from the `src/pages` directory
- Posts are sourced from the `src/posts` directory
- This is made possible with the [gatsby-source-filesystem](https://www.gatsbyjs.org/packages/gatsby-source-filesystem/),
  [gatsby-plugin-page-creator](https://www.gatsbyjs.org/packages/gatsby-plugin-page-creator/), and
  [gatsby-plugin-mdx](https://www.gatsbyjs.org/packages/gatsby-plugin-mdx/) plugins

This theme also supports the following out of the box:

- Frontmatter querying and referencing from your MDX files
- Syntax highlighting in your MDX code blocks with [gatsby-remark-prismjs](https://www.gatsbyjs.org/packages/gatsby-remark-prismjs/)
- Responsive optimized images with [gatsby-remark-images](https://www.gatsbyjs.org/packages/gatsby-remark-images/) and [gatsby-plugin-sharp](https://www.gatsbyjs.org/packages/gatsby-plugin-sharp/)
- Theming with [gatsby-plugin-theme-ui](https://www.gatsbyjs.org/packages/gatsby-plugin-theme-ui/)
- Type-checking with Typescript

## Tutorial

_Learn more about how this theme was developed: [TODO](#!)_
npm package: @sheto/time
Description: 时间工具
Author: 舍陀
Latest version: 1.0.3

<center>时间工具库</center>

## 整体说明
时间工具库包含9个模块，都可通过对应的名称引用。

### 通用工具类
constants：常量模块

### 通用工具类
common：通用
format：格式化
history：历史
split：分割

### 按种类划分工具类
year：年
month：月
week：周
day：日