open-index/open-npm huggingface dataset:
npm package: @siturra/prettier-config
Description: Personal Prettier config
Author: Sebastián Iturra
Latest version: 1.0.3

# Personal Prettier config

> My personal [Prettier](https://prettier.io) config.

## Usage

### Install

using npm

```cli
npm install --save-dev @siturra/prettier-config
```

or yarn

```cli
yarn add --dev @siturra/prettier-config
```

### Add prettier

add in package.json

```json
"prettier": "@siturra/prettier-config"
```

OR

Create a `.prettierrc` , `.prettierrc.yaml` , `.prettierrc.yml` or `.prettierrc.json` file and export a string.

```json
"@siturra/prettier-config"
```

OR

> Note: This method does not offer a way to extend the configuration to overwrite some properties from the shared configuration. If you need to do that, import the file in a `prettier.config.js` or `.prettierrc.js` file and export the modifications, e.g:
>
> ```js
> module.exports = {
>   ...require('@siturra/prettier-config'),
>   semi: false
> }
> ```

## References

- https://prettier.io/docs/en/configuration.html
- Prettier share example https://github.com/azz/prettier-config
- https://www.codereadability.com/automated-code-formatting-with-prettier
npm package: @siubeng/bili-downloader
Description: Bilibili video downloader library
Author: Siubeng
Latest version: 0.1.20201101

bili-downloader
======

自用的简陋的 B 站视频批量下载工具。

注：这不是一个完整的应用程序/命令行工具，而是一个 Node.js 库，你需要了解 JavaScript/TypeScript 语言来使用它。

## 安装

```shell script
npm i @siubeng/bili-downloader
```

## 目前支持的功能

- 批量获取用户所有视频任务、批量获取收藏列表所有视频任务
- 导出视频任务、分 P 任务到 XLSX 格式
- 根据导出的 XLSX 过滤下载任务，Chosen 栏为 0 时跳过下载
- 选择视频清晰度、音频清晰度进行下载完整文件（Dash）
- [TO-DO 列表](https://github.com/fython/bili-downloader/projects/1)

## 使用样例

`bili-downloader` 的基本使用过程是：

1. 调用 `BiliDownloader` 类的获取用户视频或收藏列表视频构建成一批视频任务。
2. 调用 `operations` 包内的 map（转换）和 filter（过滤）方法构建下载流水线。
3. 调用 `operations` 包内的 `downloadTasks` 启动下载流程。

`operations` 包含的函数众多，目前仅打算自用，后续会继续完善，可能会频繁更改接口，暂不提供文档了。

### 下载一个用户的所有视频

```javascript
const {BiliDownloader, VideoQuality} = require('@siubeng/bili-downloader');
const {
    mapToVideoParts,
    mapToVideoPlayUrls,
} = require('@siubeng/bili-downloader/dist/operations');

// 使用你的 B 站登录 Cookie 来获得更高清晰度或者私密收藏列表
BiliDownloader.init({ cookie: 'MY_COOKIE' });
BiliDownloader.getUserVideos(375504219)
    .then(mapToVideoParts())
    .then(mapToVideoPlayUrls(VideoQuality.$1080p60))
    .then(downloadTasks('D:\\Downloads\\Videos'));
```

## Licenses

MIT
npm package: @siujs/plugin-build-es
Description: Support tree-shaking es package, optimize package size
Author: buns
Latest version: 0.0.3

# `@siujs/plugin-build-es`

将包内指定目录的文件转成对应的 es 模块文件，便于在其他业务项目使用时配合打包工具来实现按需加载

## Scope

当前插件只针对`siu build`流程进行了扩展, 其他`siu`的操作指令不参与；

## How to use

```js
// in `siu.config.js` without options
module.exports = {
	plugins: ["@siujs/build-es"]
};

// in `siu.config.js` with options
module.exports = {
	plugins: [
		[
			"@siujs/build-es",
			{
				custom: {
					build: { sourceDir: "lib", destDir: "es" }
				}
			}
		]
	]
};

// in `siu.config.js` with options and excludePkgs
module.exports = {
	plugins: [
		[
			"@siujs/build-es",
			{
				// `packages/foo` and `packages/bar` 将不会参与到@siujs/plugin-build-es的处理流程中
				excludePkgs: ["foo", "bar"],
				custom: {
					build: { sourceDir: "lib", destDir: "es" }
				}
			}
		]
	]
};
```

最后形成的产物可以配合`babel-plugin-import`:

```json
{
    "plugins":
    [
      [
        "import",
        {
          "libraryName": "类库名称",
          "libraryDirectory": "es",
          "style": "css"
        }
      ]
    ]
  }
}
```
npm package: @siujs/plugin-jssdk
Description: siujs plugin for `jssdk` project
Author: buns
Latest version: 0.0.3

# `@siujs/plugin-jssdk`

专门针对`jssdk`这样类型的类库项目

## Scope

当前插件会扩展如下操作:

- `siu create`: 辅助`jssdk`类型项目的`packages/package`的创建，避免手动 copy 带来的一些问题；
- `siu build`: 辅助`jssdk`类型项目的`package`的构建流程

## Usage

```js
// in `siu.config.js` without options
module.exports = {
	plugins: ["@siujs/jssdk"]
};

// in `siu.config.js` with options
module.exports = {
	plugins: [
		[
			"@siujs/jssdk",
			{
				custom: {
					create: { install: true },
					build: {
						format: "es,cjs,umd,umd-min",
						dts: true,
						transformConfig(config) {
							config.treeshake({
								moduleSideEffects: true
							});
							config.plugin("esbuild").tap(args => {
								args[0].importeeAlias = id => {
									const parts = id.split(/[/\\]/);
									id = parts.shift();
									if (id.startsWith("@jsbridge")) {
										return path.resolve(__dirname, "./packages/", parts.join("/"));
									}
									return id;
								};
								return args;
							});
						}
					}
				}
			}
		]
	]
};

// in `siu.config.js` with options and excludePkgs
module.exports = {
	plugins: [
		[
			"@siujs/jssdk",
			{
				// `packages/foo` and `packages/bar` 将不会参与到@siujs/plugin-build-es的处理流程中
				excludePkgs: ["foo", "bar"],
				custom: {
					create: { install: true },
					build: {
						format: "es,cjs,umd,umd-min",
						dts: true,
						transformConfig(config) {
							config.treeshake({
								moduleSideEffects: true
							});
							config.plugin("esbuild").tap(args => {
								args[0].importeeAlias = id => {
									const parts = id.split(/[/\\]/);
									id = parts.shift();
									if (id.startsWith("@jsbridge")) {
										return path.resolve(__dirname, "./packages/", parts.join("/"));
									}
									return id;
								};
								return args;
							});
						}
					}
				}
			}
		]
	]
};
```
npm package: @siuol/streak-counter
Description: [![Edit streak-counter (ts-course) (forked)](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/streak-counter-ts-course-forked-7d7y3w?fontsize=14&hidenavigation=1&theme=dark)
Latest version: 0.0.2

# streak-counter
[![Edit streak-counter (ts-course) (forked)](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/streak-counter-ts-course-forked-7d7y3w?fontsize=14&hidenavigation=1&theme=dark)

a streak counter for the browser, inspired by Duolingo
# `@siuol/streak-counter` - a basic streak counter

This is a basic streak counter - inspired by duolingo - written in typescript and meant for the browser (uses ``localstorage`).

## Install

```shell
yarn add @siuol/streak-counter
```

npm install @siuol/streak-counter

Usage

import {streakCounter} from '@siuol/streak-counter'

const today = new Date()
const streak = streakCounter(localStorage, today)
// streak returns an object:
// {
//    currentCount: 1,
//    lastLoginDate: "11/11/2021",
//    startDate: "11/11/2021",
// }
//
npm package: @siva7170/my-own-ui
Description: This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
Author: Siva V
Latest version: 0.0.1

# NgMyOwnUi

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.

## Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

```bash
ng generate component component-name
```

For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:

```bash
ng generate --help
```

## Building

To build the library, run:

```bash
ng build ng-my-own-ui
```

This command will compile your project, and the build artifacts will be placed in the `dist/` directory.

### Publishing the Library

Once the project is built, you can publish your library by following these steps:

1. Navigate to the `dist` directory:
   ```bash
   cd dist/ng-my-own-ui
   ```

2. Run the `npm publish` command to publish your library to the npm registry:
   ```bash
   npm publish
   ```

## Running unit tests

To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:

```bash
ng test
```

## Running end-to-end tests

For end-to-end (e2e) testing, run:

```bash
ng e2e
```

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

## Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.