open-index/open-npm huggingface dataset:
npm package: @jdevelop3r/random-messages
Description: Mensajes Ramdoms
Author: Jose Di Pietro
Latest version: 1.0.1


# random-messages

Whenever I start a new project, I don't know what to write for the first commit. After doing a “git init” there is technically nothing there...

## Install

```npm
npm install -g random-msg
```

# Usage

```bash
random-msg
```

# Contributing
If someone wants to add or improve something, I invite you to collaborate directly in this repository: [random-msg](https://github.com/platzi/npm-random-msg)

# License
random-msg is released under the [MIT License](https://opensource.org/licenses/MIT).
npm package: @jdfed/drip-form-plugin-eggjs
Description: drip-form eggjs插件
Author: kapeter
Latest version: 0.2.0-alpha.0

# drip-form-plugin-eggjs

drip-form plugin for eggjs.

## Install

```bash
$ npm i @jdfed/drip-form-plugin-eggjs --save
```

## Usage

```js
// {app_root}/config/plugin.js
exports.dripValidator = {
  enable: true,
  package: '@jdfed/drip-form-plugin-eggjs',
};
```

## Example

```js
// app/controller/home.js
const Controller = require('egg').Controller;
class HomeController extends Controller {
  async index() {
    const rules = {
      type: 'object',
      properties: {
        name: {
          type: 'string',
        },
        age: {
          type: 'integer',
        },
      },
      required: [
        'name',
        'age',
      ],
    };
    this.ctx.validateBySchema(rules);
    this.ctx.body = 'ok!';
  }
}
module.exports = HomeController;
```

## Questions & Suggestions

Please open an issue [here](https://github.com/JDFED/drip-form).

## License

[MIT](LICENSE)
npm package: @jdfed/leo-cli
Description: leo 是「京东-平台业务研发部-应用业务产品研发部」开发的一款覆盖前端开发全链路、可扩展、可定制的脚手架工具，并提供模板、构建器、扩展命令等丰富的周边生态
Author: JDFED
Latest version: 1.0.1

# leo

leo 是「京东-平台业务研发部-应用业务产品研发部」开发的一款覆盖前端开发全链路、可扩展、可定制的脚手架工具，并提供模板、构建器、扩展命令等丰富的周边生态
npm package: @jdfed/leo-core
Description: leo 是「京东-平台业务研发部-应用业务产品研发部」开发的一款覆盖前端开发全链路、可扩展、可定制的脚手架工具，并提供模板、构建器、扩展命令等丰富的周边生态
Author: JDFED
Latest version: 1.0.0

# leo

leo 是「京东-平台业务研发部-应用业务产品研发部」开发的一款覆盖前端开发全链路、可扩展、可定制的脚手架工具，并提供模板、构建器、扩展命令等丰富的周边生态
npm package: @jdfed/leo-generator
Description: leo 是「京东-平台业务研发部-应用业务产品研发部」开发的一款覆盖前端开发全链路、可扩展、可定制的脚手架工具，并提供模板、构建器、扩展命令等丰富的周边生态
Author: JDFED
Latest version: 1.0.0

# leo

leo 是「京东-平台业务研发部-应用业务产品研发部」开发的一款覆盖前端开发全链路、可扩展、可定制的脚手架工具，并提供模板、构建器、扩展命令等丰富的周边生态
npm package: @jdfed/leo-utils
Description: 为 leo 及其生态提供的工具库
Author: JDFED
Latest version: 1.0.0

# leo-utils

为 leo 及其生态提供的工具库

## loadPkg

动态加载

### 基础使用

```js
import { loadPkg } from '@leo/leo-utils';

(async () => {
  const puppeteer = await loadPkg('puppeteer', '10.0.0');
})();
```

### 高级使用

```js
import { loadPkg, log } from '@leo/leo-utils';

(async () => {
  const puppeteer = await loadPkg('puppeteer', {
    version: '10.0.0',
    private: true,
    beforeInstall: () => {
      log.info('Log info when beforeInstall');
    },
    installSuccess: () => {
      log.success('Log info when installSuccess');
    },
    installFail: () => {
      log.error('Log info when installFail');
    },
  });
})();
```

### API

#### loadPkg

| 属性名                         | 描述                     | 类型                                       | 默认值  |
| ------------------------------ | ------------------------ | ------------------------------------------ | ------- |
| name                           | 安装路径                 | `string`                                   | `--`    |
| versionOrOptions               | 版本号或相关配置         | `string` / `object`                        | `--`    |
| versionOrOptions.version       | 版本号                   | `string`                                   | `false` |
| versionOrOptions.dev           | 本次安装是否为开发模式   | `boolean`                                  | `false` |
| versionOrOptions.private       | 是否将安装的包单独隔离   | `boolean`                                  | `false` |
| versionOrOptions.beforeInstall | 本次安装后执行的声明周期 | `(name: string, version?: string) => void` | `--`    |
| versionOrOptions.afterInstall  | 本次安装前执行的声明周期 | `(name: string, version?: string) => void` | `--     |

## log

基于 [signale](https://www.npmjs.com/package/signale) 封装的 log 工具

### 基础使用

```js
import { log } from '@leo/leo-utils';

log.error('');
log.fatal('');
log.fav('');
log.info('');
log.star('');
log.success('');
log.wait('');
log.warn('');
log.complete('');
log.pending('');
log.note('');
log.start('');
log.pause('');
log.debug('');
log.await('');
log.watch('');
log.log('');
```

### 高级使用

```js
import { log } from '@leo/leo-utils';

// 在输出时标识你的作用域，用于区分输出
const myLog = log.scope('plugin scope');

myLog.info('info');

// [plugin scope] › ℹ  info      Info will has scope remark
```

### 注意

- `log.debug` 是否输出由 `leoConfig.isDebug` 来控制，你可以通过使用 `log.debug` 来定位线上问题