open-index/open-npm huggingface dataset:
npm package: @power-doctest/cli
Description: A command line tool for power-doctest.
Author: azu
Latest version: 5.1.0

# power-doctest

A command line tool for power-doctest.

## Install

Install with [npm](https://www.npmjs.com/):

    npm install power-doctest -g

## Usage

### CLI

	Usage
	  $ power-doctest /path/to/file.{js,md,adoc}

	Options
	  --packageDir  Current Working directory. Should put package.json in the directory.
	  --disableRunning Disable running test case that has not state.

	Examples
	  $ power-doctest ./README.md
	  $ power-doctest ./README.adoc
	  $ power-doctest ./src/main.js

### Node Modules

```js
const { testContent } = require("power-doctest");
testContent({
    content: "1; // => 2",
    contentType: "javascript",
    filePath: "test.js",
    disableRunning: true
}).then(results => {
    console.log(results[0].status); // => "rejected"
});
```

## Changelog

See [Releases page](https://github.com/azu/power-doctest/releases).

## Running tests

Install devDependencies and Run `npm test`:

    npm test

## Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, [please create an issue](https://github.com/azu/power-doctest/issues).

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

## Author

- [github/azu](https://github.com/azu)
- [twitter/azu_re](https://twitter.com/azu_re)

## License

MIT © azu
npm package: @power-elements/codesandbox-button
Description: Custom Element that Shows a CodeSandbox demo when you click on it.
Author: codesandbox-button
Latest version: 0.1.0

## `codesandbox-button.js`:

### class: `CodesandboxButton`, `codesandbox-button`

#### Superclass

| Name         | Module | Package |
| ------------ | ------ | ------- |
| `LitElement` |        | lit     |

#### Fields

| Name             | Privacy | Type                  | Default  | Description                                            | Inherited From |
| ---------------- | ------- | --------------------- | -------- | ------------------------------------------------------ | -------------- |
| `fontSize`       |         | `number`              | `14`     | font size                                              |                |
| `hideNavigation` |         | `boolean`             | `false`  | when true, hides navigation in the iframe              |                |
| `sandboxId`      |         | `string`              |          | five-character id of your sandbox                      |                |
| `showDemo`       |         | `boolean`             | `false`  | when true, shows the CodeSandbox instead of the button |                |
| `module`         |         | `string`              |          | path to the default module to display                  |                |
| `theme`          |         | `'light'\|'dark'`     | `'dark'` |                                                        |                |
| `view`           |         | `'editor'\|'preview'` |          |                                                        |                |

#### Attributes

| Name              | Field          | Inherited From |
| ----------------- | -------------- | -------------- |
| `font-size`       | fontSize       |                |
| `hide-navigation` | hideNavigation |                |
| `sandbox-id`      | sandboxId      |                |
| `show-demo`       | showDemo       |                |
| `module`          | module         |                |
| `theme`           | theme          |                |
| `view`            | view           |                |

<details><summary>Private API</summary>

#### Methods

| Name           | Privacy | Description | Parameters | Return | Inherited From |
| -------------- | ------- | ----------- | ---------- | ------ | -------------- |
| `getIframeSrc` | private |             |            |        |                |
| `onClick`      | private |             |            |        |                |

</details>

<hr/>

### Exports

| Kind                        | Name                 | Declaration       | Module                | Package |
| --------------------------- | -------------------- | ----------------- | --------------------- | ------- |
| `js`                        | `CodesandboxButton`  | CodesandboxButton | codesandbox-button.js |         |
| `custom-element-definition` | `codesandbox-button` | CodesandboxButton | codesandbox-button.js |         |
npm package: @power-industries/typejs
Description: Better TypeChecking in JavaScript using 'instanceof'
Author: Philipp Steckenbauer
Latest version: 1.1.1

# TypeJS

Better TypeChecking in JavaScript using `instanceof`.

## Installation

Use the package manager [NPM](https://www.npmjs.com) to install TypeJS into your NodeJS Project.

```bash
npm install --save @power-industries/typejs
```

You can then import the module into your JavaScript File.

```javascript
const Type = require('@power-industries/typejs')
```

## Usage

TypeJS works by implementing Pseudo-Classes for some JavaScript Types. Those Pseudo-Classes allows for checking values directly with instanceof.

All the following examples return `true`:

```javascript
undefined instanceof Type.Undefined
null instanceof Type.Null
true instanceof Type.Boolean
1.1 instanceof Type.Number
NaN instanceof Type.NaN
Infinity instanceof Type.Infinity
"Hello World" instanceof Type.String
[] instanceof Type.Array
{} instanceof Type.Object
Symbol() instanceof Type.Symbol
100n instanceof Type.BigInt
() => {} instanceof Type.Function
```

This module also treats `Number`, `NaN` and `Infinity` as three different Types, as well as `Null`, `Array` and `Object`, as opposed to the `typeof` Operator.



This module does not include Types which are already available as Class-Instances in JavaScript, such as `Map` or `Set`.

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.



## License

MIT License

Copyright (c) 2020 Power Industries Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
npm package: @power-rent/sitemap-checker
Description: [![npm version](https://img.shields.io/npm/v/@power-rent/sitemap-checker)](https://www.npmjs.com/package/@power-rent/sitemap-checker)
Latest version: 2.0.0

# sitemap-checker

[![npm version](https://img.shields.io/npm/v/@power-rent/sitemap-checker)](https://www.npmjs.com/package/@power-rent/sitemap-checker)

A fast CLI tool to validate sitemaps. Recursively traverses sitemap indexes, extracts all URLs, checks their HTTP reachability concurrently, and reports broken links (404s, 5xx).

Features a beautiful terminal UI with progress tracking and summary.

## Install

```bash
npm install --global @power-rent/sitemap-checker
```

Requires [Node.js](https://nodejs.org) 20+.

## Usage

```bash
sitemap-checker <sitemapUrl> [options]
```

`sitemapUrl` must be a valid HTTP/HTTPS URL pointing to a sitemap index or sitemap file.

### Options

| Flag                | Alias | Description                     |
| ------------------- | ----- | ------------------------------- |
| `--skip-validation` | `-s`  | Skip strict URL encoding checks |

## Examples

```bash
# Basic usage
$ sitemap-checker https://example.com/sitemap.xml

# Skip strict URL validation (useful for sitemaps with encoding issues)
$ sitemap-checker https://example.com/sitemap.xml --skip-validation
```

## Output files

Always generated in the current directory:

- `validated-urls.txt` – All URLs found in the sitemap(s), one per line.
- `broken-404.txt` – 404-broken URLs (empty if none).
- `broken-5xx.txt` – 5xx-server-error URLs (empty if none).

## Terminal UI

During validation:

```
[██████████░░░░░░░░] 45/100 URLs checked · ETA: 2m 15s
```

Final summary:

```
┌ Checked 100 URLs: 2 404s → broken-404.txt, 1 5xx → broken-5xx.txt ┐
└                                                                   ┘
```

Exits with code `1` if broken links are found.

## Features

- 🔍 Recursively traverses nested sitemap indexes.
- ⚡ Concurrent URL checks (5 parallel) with automatic retries.
- 📊 Real-time progress bar with ETA using `pretty-ms`.
- 🎨 Colorful Ink/React terminal UI.
- 📄 Outputs broken link lists and full validated URLs.
- 🚀 Zero-config; works out-of-the-box.
- 📈 Handles large sitemaps efficiently with `p-limit`.

## License

MIT © [Toprent](https://toprentapp.com)
npm package: @power-xa/m-ui
Description: power-mobile系列公共组件库
Latest version: 0.0.8

# m-ui

# 0.0.8 2026-01-14
1.增加VaildCodePopup，用户身份验证
2.移除RefreshList组件
3.开放ProTabs属性及Instance(ProTabItemProps, ProTabsInstance, ProTabsProps)
4.开放ProList属性及Instance(ProListInstance, ProListProps)
5.开放useConfig，无需从dist引入
6.增加日历统计组件，使用见项目打卡
7.增加UserView组件，CreateEdit升级版，同时CreateEdit做废弃准备
8.优化ProForm系列组件，并开放ProForm一系列属性及ProFormInstance，可设置及获取指定字段
9.增加Hooks(usePageParams,useDelayGoBack,useNavigateTo)
10.开放部分公共Controller

# 0.0.7 2025-12-05
1.ConfigProvider 增加 env 参数，用于判断当前环境
2.Popup/Drawer 组件Bug修改
3.Filter默认值场景增加
4.ProFormList组件优化
5.ProFormGroup子组件赋值操作修改
6.Tabs修改非swiperable下children无法更新

# 0.0.6
1.CreatorEdit 增加 companyUserId 参数
2.Popup 组件增加默认头部，可自定义头部内容
3.ProFormField 组件暴露
4.ProFormList组件优化
5.ProFormSelect 内部Popup增加扩展内容
6.Tabs组件增加ref属性，可通过ref刷新指定Tab

# 0.0.5
ProFormUpload/ProList 增加文件预览

# 0.0.4
1.Tabs修改（子组件内容更新后未重新渲染）
2.PageContainer增加footer属性，可自定义底部内容
3.Filter Children属性修改

# 0.0.1
1.增加request方法
2.增加组件：
  - Button
  - PageContainer
  - Tabs
  - RefreshList
  - Skeleton
  - Drawer
  - Popup
  - Grid
  - Tabbar
  - ProList
  - FloatButton
  - Breadcrumb
  - ConfigProvider
  - CreatorEdit
  - Empty
  - ActionSheet
npm package: @power-xa/p-ui
Description: power-pc系列公共组件库
Latest version: 0.0.12

# p-ui

# 0.0.7
- 修改Select.Company参数格式及请求逻辑

# 0.0.8
- 增加弹窗关闭后自动将内容滚动到顶部操作
npm package: @power137/tiny
Description: Removes all spaces from a string
Latest version: 0.0.3

# @power137/tiny

[![npm (scoped)](https://img.shields.io/badge/npm-0.0.1-blue)](https://www.npmjs.com/package/@power137/tiny)
[![license](https://img.shields.io/badge/license-MIT-green)](https://www.npmjs.com/package/@power137/tiny)


## Install

```
$ npm install @power137/tiny
```

## Usage

```js
const tiny = require("@power137/tiny");
tiny("So much space!");
//=> "Somuchspace!"
tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1
```