open-index/open-npm huggingface dataset:
npm package: @0x64.in/mockjs
Description: 生成随机数据 & 拦截 Ajax 请求
Author: fivge
Latest version: 1.0.1-beta3

# Mock.js

<!-- 模拟请求 & 模拟数据 -->

[![Build Status](https://travis-ci.org/nuysoft/Mock.svg?branch=refactoring)](https://travis-ci.org/nuysoft/Mock)

<!-- [![Coverage Status](https://coveralls.io/repos/nuysoft/Mock/badge.png?branch=refactoring)](https://coveralls.io/r/nuysoft/Mock?branch=refactoring)
[![NPM version](https://badge.fury.io/js/mockjs.svg)](http://badge.fury.io/js/mockjs)
[![Bower version](https://badge.fury.io/bo/mockjs.svg)](http://badge.fury.io/bo/mockjs)
[![Dependency Status](https://gemnasium.com/nuysoft/Mock.svg)](https://gemnasium.com/nuysoft/Mock)
[![spm package](http://spmjs.io/badge/mockjs)](http://spmjs.io/package/mockjs) -->

Mock.js is a simulation data generator to help the front-end to develop and prototype separate from the back-end progress and reduce some monotony particularly while writing automated tests.

The official site: <http://mockjs.com>

## install

`@0x64.in/mockjs`

## Features

-   Generate simulated data according to the data template
-   Provide request/response mocking for ajax requests
-   ~~Generate simulated data according to HTML-based templates~~

This library is loosely inspired by Elijah Manor's post [Mocking
Introduction](http://www.elijahmanor.com/2013/04/angry-birds-of-javascript-green-bird.html), [mennovanslooten/mockJSON](https://github.com/mennovanslooten/mockJSON), [appendto/jquery-mockjax](https://github.com/appendto/jquery-mockjax) and [victorquinn/chancejs](https://github.com/victorquinn/chancejs/).

## Questions?

If you have any questions, please feel free to ask through [New Issue](https://github.com/nuysoft/Mock/issues/new).

## Reporting an Issue

Make sure the problem you're addressing is reproducible. Use <http://jsbin.com/> or <http://jsfiddle.net/> to provide a test page. Indicate what browsers the issue can be reproduced in. What version of Mock.js is the issue reproducible in. Is it reproducible after updating to the latest version?

## License

Mock.js is available under the terms of the [MIT License](./LICENSE).
npm package: @0x6b/textlint-rule-no-emphasis
Description: textlint rule which detects and reports emphasis in the document.
Author: 0x6b
Latest version: 0.1.0

# textlint-rule-no-emphasis

[textlint](https://textlint.github.io/) rule which detects and reports emphasis (**bold** and _italic_) in your markdown document.

This rule detects the following emphasis markers:

- `**text**` - bold
- `*text*` - italic
- `__text__` - bold (alternative)
- `_text_` - italic (alternative)

## Install

Install with [pnpm](https://pnpm.io/):

```sh
pnpm add @0x6b/textlint-rule-no-emphasis
```

Or with npm:

```sh
npm install @0x6b/textlint-rule-no-emphasis
```

This module requires Node.js >= 20.0.0.

## Usage

Via `.textlintrc`(recommended):

```json
{
  "rules": {
    "@0x6b/no-emphasis": true
  }
}
```

Via CLI:

```
textlint --rule @0x6b/no-emphasis README.md
```

### Build

Builds source codes for publish to the `lib/` folder.

```sh
pnpm install && pnpm run build
```

### Test

Run test code in `test` folder by [textlint-tester](https://github.com/textlint/textlint-tester "textlint-tester").

```sh
pnpm test
```

## References

- [Creating textlint rules](https://textlint.github.io/docs/rule.html)
- [Markdown AST](https://github.com/textlint/textlint/blob/master/docs/txtnode.md)

## License

MIT © 0x6b
npm package: @0x6b/textlint-rule-no-hr-before-heading
Description: textlint rule which detects horizontal rules appearing immediately before headings.
Author: 0x6b
Latest version: 0.1.0

# textlint-rule-no-hr-before-heading

[textlint](https://textlint.github.io/) rule which detects and reports horizontal rules appearing immediately before headings in your markdown document.

While horizontal rules (`---`, `***`, `___`) before headings are syntactically valid in Markdown, they often create visual clutter. Markdown headings already provide clear visual separation, making horizontal rules redundant in this context.

## Install

Install with [pnpm](https://pnpm.io/):

```sh
pnpm add @0x6b/textlint-rule-no-hr-before-heading
```

Or with npm:

```sh
npm install @0x6b/textlint-rule-no-hr-before-heading
```

This module requires Node.js >= 20.0.0.

## Usage

Via `.textlintrc`(recommended):

```json
{
  "rules": {
    "@0x6b/no-hr-before-heading": true
  }
}
```

Via CLI:

```
textlint --rule @0x6b/no-hr-before-heading README.md
```

## Examples

### Invalid

```markdown
---

# Heading

Some content

___

## Another Heading
```

### Valid

```markdown
# Heading

Some content

---

More content

## Another Heading
```

## Fixable

This rule is automatically fixable using the `--fix` option. The horizontal rule and any whitespace between it and the heading will be removed.

## Front Matter Support

This rule correctly handles YAML front matter in Markdown files. Front matter delimiters (`---`) are not treated as horizontal rules when properly formatted:

```markdown
---
title: My Document
date: 2023-01-01
---

# Heading
```

This is valid and will not trigger the rule because textlint's markdown parser includes `remark-frontmatter` support by default, which correctly parses front matter as a special node type rather than as horizontal rules.

## Build

Builds source codes for publish to the `lib/` folder.

```sh
pnpm install && pnpm run build
```

## Test

Run test code in `test` folder by [textlint-tester](https://github.com/textlint/textlint-tester "textlint-tester").

```sh
pnpm test
```

## References

- [Creating textlint rules](https://textlint.github.io/docs/rule.html)
- [Markdown AST](https://github.com/textlint/textlint/blob/master/docs/txtnode.md)
- [remark-frontmatter](https://github.com/remarkjs/remark-frontmatter)

## License

MIT © 0x6b
npm package: @0x6b/textlint-rule-no-numbered-headings-and-bullets
Description: textlint rule which detects and reports numbered headings and bullet list items.
Author: 0x6b
Latest version: 0.2.0

# textlint-rule-no-numbered-headings-and-bullets

[textlint](https://textlint.github.io/) rule which detects and reports numbered headings and bullet list items in your markdown document.

This rule prevents the use of numbered prefixes (like `1.`, `2.`, etc.) in:

- ATX-style markdown headings (e.g., `# 1. First Heading`)
- Bullet list items, including nested/indented lists (e.g., `- 1. First item`)
- Headings with inline formatting (e.g., `# 1. **Bold** Heading`)

**Note:** Only ATX-style headings (`# Heading`) are supported. Setext-style headings with underlines (`Heading\n=====`) cannot be detected.

## Install

Install with [pnpm](https://pnpm.io/):

```sh
pnpm add @0x6b/textlint-rule-no-numbered-headings-and-bullets
```

Or with npm:

```sh
npm install @0x6b/textlint-rule-no-numbered-headings-and-bullets
```

This module requires Node.js >= 20.0.0.

## Usage

Via `.textlintrc`(recommended):

```json
{
  "rules": {
    "@0x6b/no-numbered-headings-and-bullets": true
  }
}
```

Via CLI:

```
textlint --rule @0x6b/no-numbered-headings-and-bullets README.md
```

### Build

Builds source codes for publish to the `lib/` folder.

```sh
pnpm install && pnpm run build
```

### Test

Run test code in `test` folder by [textlint-tester](https://github.com/textlint/textlint-tester "textlint-tester").

```sh
pnpm test
```

## References

- [Creating textlint rules](https://textlint.github.io/docs/rule.html)
- [Markdown AST](https://github.com/textlint/textlint/blob/master/docs/txtnode.md)

## License

MIT © 0x6b
npm package: @0x6b/textlint-rule-no-smart-quotes
Description: textlint rule which detects and fixes smart quotes (curly quotes) to straight quotes.
Author: 0x6b
Latest version: 0.1.0

# textlint-rule-no-smart-quotes

[textlint](https://textlint.github.io/) rule which detects and fixes smart quotes (curly quotes) to straight quotes.

## What it does

This rule detects the following smart quote characters and replaces them with their straight equivalents:

| Code Point | Name                                  | Replacement |
| ---------- | ------------------------------------- | ----------- |
| `U+201C`   | LEFT DOUBLE QUOTATION MARK (&ldquo;)  | `"`         |
| `U+201D`   | RIGHT DOUBLE QUOTATION MARK (&rdquo;) | `"`         |
| `U+2018`   | LEFT SINGLE QUOTATION MARK (&lsquo;)  | `'`         |
| `U+2019`   | RIGHT SINGLE QUOTATION MARK (&rsquo;) | `'`         |

## Install

Install with [pnpm](https://pnpm.io/):

```sh
pnpm add @0x6b/textlint-rule-no-smart-quotes
```

Or with npm:

```sh
npm install @0x6b/textlint-rule-no-smart-quotes
```

This module requires Node.js >= 20.0.0.

## Usage

Via `.textlintrc`(recommended):

```json
{
  "rules": {
    "@0x6b/no-smart-quotes": true
  }
}
```

Via CLI:

```
textlint --rule @0x6b/no-smart-quotes README.md
```

### Build

Builds source codes for publish to the `lib/` folder.

```sh
pnpm install && pnpm run build
```

### Test

Run test code in `test` folder by [textlint-tester](https://github.com/textlint/textlint-tester "textlint-tester").

```sh
pnpm test
```

## License

MIT © 0x6b
npm package: @0x706b/ts-transform-esm-specifier
Description: ### NOTE: This transformer is entirely experimental. Use it at your own risk. #### I highly recommend making a backup of any work before testing this. It shouldn't destroy anything, but I can't promise that. So don't hold me liable if your project get man
Author: Peter Krol
Latest version: 0.1.14

# ts-transform-esm-module-specifier

### NOTE: This transformer is entirely experimental. Use it at your own risk.
#### I highly recommend making a backup of any work before testing this. It shouldn't destroy anything, but I can't promise that. So don't hold me liable if your project get mangled or your computer explodes :)

Transforms typescript import statements into a format currently accepted by node.js ES Module system.

For example:

```javascript
import { thing } from "folder/file"
``` 
becomes 

```javascript
import { thing } from "folder/file.js"
```

and

```javascript
import { thing } from "folder/anotherFolder"
```

becomes

```javascript
import { thing } from "folder/anotherFolder/index.js"
```
npm package: @0x706b/ts-transform-fix-esm
Description: # Disclaimer
Author: Peter Krol
Latest version: 0.2.2

# ts-transform-fix-esm

# Disclaimer

This transformer is experimental; use it at your own risk.

# Description

Adds file extension and/or index to module specifiers and correctly requires commonjs modules in an ESM environment.

For example:

```javascript
import { thing } from "commonjs/file";
import { anotherThing } from "esm/folder"
```

becomes

```javascript
import { anotherThing } from "esm/folder/index.js";
import { createRequire as __createRequire } from "module";
const __require = __createRequire(import.meta.url);
const { thing } = require(commonjs/file);
```
npm package: @0x706b/tsplus-installer
Description: Run `yarn add -D typescript @tsplus/installer` and add `tsplus-install` in your `package.json` scripts like:
Latest version: 0.0.189

### Installation

Run `yarn add -D typescript @tsplus/installer` and add `tsplus-install` in your `package.json` scripts like:

```json
{
    "scripts": {
        "postinstall": "tsplus-install"
    }
}
```

Additionally add a config like the following to be specified that tells the compiler how to map source files to traces and imports:

```json
// tsplus.config.json
{
  "importMap": {
    "^(.*)/packages/([^/]*)/src(.*)/index\\.ts$": "@tsplus-test/$2$3",
    "^(.*)/packages/([^/]*)/src(.*)\\.ts$": "@tsplus-test/$2$3"
  },
  "traceMap": {
    "^(.*)/packages/([^/]*)/(.*)$": "(@tsplus-test/$2) $3"
  }
}
```

and linked to each tsconfig where either a main build happens or any project reference:

```json
// tsconfig.json
{
  "compilerOptions": {
    "tsPlusConfig": "../../tsplus.config.json"
  }
}
```

Notes:

 - TS+ will add imports in your code and it will use fully qualified imports like `@tsplus-tests/package/MyFile`
 - It is your job to make sure every file is properly exported in your `package.json` exports.
 - Each file should correspond to a unique import, to avoid ending up with circular references as much as possible
 - It is advisable to use "typescript.preferences.importModuleSpecifier": "non-relative in vscode settings to ensure the IDE suggests the correct auto imports