open-index/open-npm huggingface dataset:
npm package: @sugarlata/node-red-contrib-bible-gateway
Description: A Node-RED custom node to download scripture from bible gateway.
Author: Nathan Sgarlata
Latest version: 2.0.3

## <p align="center">Node Red Bible</p>
<p align="center"><a target="_blank" rel="noopener noreferrer" href="https://www.npmjs.com/package/@sugarlata/node-red-contrib-bible-gateway"><img src="https://img.shields.io/npm/v/@sugarlata/node-red-contrib-bible-gateway.svg" alt="Main" style="max-width: 100%;"></a></p>

<p align="center">
<a target="_blank" rel="noopener noreferrer" href="https://github.com/sugarlata/node-red-contrib-bible-gateway/tree/main"><img src="https://github.com/sugarlata/node-red-contrib-bible-gateway/actions/workflows/main-test.yml/badge.svg?branch=main" alt="Main" style="max-width: 100%;"></a>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/sugarlata/node-red-contrib-bible-gateway/tree/develop"><img src="https://github.com/sugarlata/node-red-contrib-bible-gateway/actions/workflows/develop-test.yml/badge.svg?branch=develop" alt="Main" style="max-width: 100%;"></a>
</p>

Nodes for interacting with bible gateway. @sugarlata/node-red-contrib-bible-gateway enables you to create URLs to link directly to Bible Gateway, or download chapters of scripture from Bible Gateway.

<a target="blank" href="https://paypal.me/sugarlata"><img src="https://img.shields.io/badge/Donate-PayPal-blue.svg"/></a>


## Documentation / Links

- [Examples](https://github.com/sugarlata/node-red-contrib-bible-gateway/tree/main/examples)
- [Code Repo](https://github.com/sugarlata/node-red-contrib-bible-gateway)
- [Issues](https://github.com/sugarlata/node-red-contrib-bible-gateway/issues)

## Getting Started

First of all install [Node-RED](http://nodered.org/docs/getting-started/installation)

```
$ sudo npm install -g node-red
```

Then open  the user data directory  `~/.node-red`  and install the package

```
$ cd ~/.node-red
$ npm install @sugarlata/node-red-contrib-bible-gateway
```

Then run

```
node-red
```

Import the [example file](https://github.com/sugarlata/node-red-contrib-bible-gateway/blob/main/examples/examples.json) into Node Red

## Credits

- [BibleGatewayWrapper](https://github.com/azumbro/BibleGatewayWrapper)
npm package: @sugarnpm/common
Description: ```     npm install @sugarnpm/common --save ``` ### 引入组件 +   如果要使用[midway框架](https://midwayjs.org/)的[自定义装饰器](https://midwayjs.org/docs/custom_decorator)的功能。需按以下放入引入到midway 项目中. ```     import * as common from "@sugarnpm/common";     @Configuration(
Latest version: 1.0.361

# 公共组件模块

### 安装组件
```
    npm install @sugarnpm/common --save
```
### 引入组件
+   如果要使用[midway框架](https://midwayjs.org/)的[自定义装饰器](https://midwayjs.org/docs/custom_decorator)的功能。需按以下放入引入到midway 项目中.
```
    import * as common from "@sugarnpm/common";
    @Configuration({
        imports:[
            //...
            common // 加入 common 组件
        ],
        importConfigs: [
            join(__dirname, './config')
        ]
    })
    export class MainConfiguration {

    }
```  
### 自定义装饰器
|装饰器|修饰位置|描述|
|:----:|:----:|:----:|
|[@GetAppDataSource(Entity)](./docs/decorator.md#typeorm数据库repository)|Parameter|从参数获取数据库 typeORM 实体Repository|

### 公共服务
|服务名称|类|说明|
|:----:|:----:|:----:|
|JWT加密/解密|[JwtUtils](./src/service/jwt.ts)|有效期7天的加密内容|

### 公共参数校验
数据库实体校验 [DaoBaseDTO](./src/dto/Base.dto.ts)用于需要访问数据的方法校验参数
### 公共Utils方法
|方法名|方法描述|
|:----:|:----:|
|[dayzero](./docs/method.md#获取000000时间戳)|获取指定时间戳当日的0点时间戳|
|[timestamp](./docs/method.md#当前时间戳)|当前时间戳|
|[formattime](./docs/method.md#格式化时间)|将时间戳格式化成指定的时间格式|
|[Random](./docs/method.md#获取指定范围的随机数)|获取指定范围的随机数|
|[md5](./docs//method.md#获取指定值的md5值)|获取指定值的MD5值|
|[generate](./docs/method.md#生成指定长度的随机字符串效果同md5)|生成指定长度的随机字符串(效果同MD5)|
|[formatMoney](./docs//method.md#格式化金钱)|格式化金钱|
|[formatData](./docs/method.md#格式化任意对象arrayobject)|格式化任意对象(array,object)|
|[clone](./docs//method.md#克隆对象arrayobject)|克隆对象(array,object)|
|[makeRandomNum](./docs//method.md#生产指定长度的随机数字)|生产指定长度的随机数字|
|[makeNumberOfTime](./docs/method.md#生成以年月日时分秒毫秒开头的的指定长度的数字)|生成以年月日时分秒毫秒开头的的指定长度的数字(字符串)|

### typeorm 抽象类
[EntityBaseContent](./src/base/EntityAbstract%20.ts)

### protobufjs usering
```
var protobuf   = require("protobufjs"), // requires the full library
    descriptor = require("protobufjs/ext/descriptor");

var root = ...;

// convert any existing root instance to the corresponding descriptor type
var descriptorMsg = root.toDescriptor("proto2");
// ^ returns a FileDescriptorSet message, see table below

// encode to a descriptor buffer
var buffer = descriptor.FileDescriptorSet.encode(descriptorMsg).finish();

// decode from a descriptor buffer
var decodedDescriptor = descriptor.FileDescriptorSet.decode(buffer);

// convert any existing descriptor to a root instance
root = protobuf.Root.fromDescriptor(decodedDescriptor);
// ^ expects a FileDescriptorSet message or buffer, see table below

// and start all over again
```
### 公共错误码及错误消息
+   公共[错误代码](./src/common/ErrorCode.ts)

+   公共[错误代码描述](./src//common//ErrorMessage.ts)
npm package: @sugarshin/draft-js-emoji-plugin
Description: Emoji Plugin for DraftJS
Author: Nik Graf
Latest version: 2.0.1-oneteam.3

# DraftJS Emoji Plugin

*This is a plugin for the `draft-js-plugins-editor`.*

This plugin provides consistent Emoji display across all platforms, independent of the host system.

## Usage

```js
import createEmojiPlugin from 'draft-js-emoji-plugin';

const emojiPlugin = createEmojiPlugin();
```
## Advanced Usage

```js
const emojiPlugin = createEmojiPlugin({
  priorityList: {
    ':see_no_evil:': ["1f648"],
    ':raised_hands:': ["1f64c"],
    ':100:': ["1f4af"],
  }
});
// emojis in priorityList will show up after user typed ':'
```
## Importing the default styles

The plugin ships with a default styling available at this location in the installed package:
`node_modules/draft-js-emoji-plugin/lib/plugin.css`.

### Webpack Usage

Follow the below steps to import the css file by using Webpack's `style-loader` and `css-loader`. 

1. Install Webpack loaders: `npm install style-loader css-loader --save-dev`
2. Add the below section to Webpack config (if your Webpack already has loaders array, simply add the below loader object(`{test:foo, loaders:bar[]}`) as an item in the array).

    ```js
    module: {
      loaders: [{
        test: /\.css$/,
        loaders: [
          'style-loader', 'css'
        ]
      }]
    }
    ```

3. Add the below import line to your component to tell Webpack to inject style to your component.

    ```js
    import 'draft-js-emoji-plugin/lib/plugin.css';
    ```
4. Restart Webpack.
npm package: @sugarshin/draft-js-mention-plugin
Description: Mention Plugin for DraftJS
Author: Nik Graf
Latest version: 2.0.1-oneteam.3

# DraftJS Mention Plugin

*This is a plugin for the `draft-js-plugins-editor`.*

This plugin allows you to add mentions to your editor!

Usage:

```js
import createMentionPlugin from 'draft-js-mention-plugin';

const mentionPlugin = createMentionPlugin({ mentions });
```

## Importing the default styles

The plugin ships with a default styling available at this location in the installed package:
`node_modules/draft-js-mention-plugin/lib/plugin.css`.

### Webpack Usage
Follow the steps below to import the css file by using Webpack's `style-loader` and `css-loader`.

1. Install Webpack loaders: `npm install style-loader css-loader --save-dev`
2. Add the below section to Webpack config (if your Webpack already has loaders array, simply add the below loader object(`{test:foo, loaders:bar[]}`) as an item in the array).

    ```js
    module: {
      loaders: [{
        test: /\.css$/,
        loaders: [
          'style-loader', 'css'
        ]
      }]
    }
    ```

3. Add the below import line to your component to tell Webpack to inject style to your component.

    ```js
    import 'draft-js-mention-plugin/lib/plugin.css';
    ```
4. Restart Webpack.
npm package: @sugarshin/react-social
Description: React components for social share on ES6 class
Author: sugarshin
Latest version: 0.0.2

# react-social

[![GitHub version][github-ver-image]][github-ver-url]
[![License][license-image]][license-url]

React components for social share on ES6 class

Fork on [olahol/react-social](https://github.com/olahol/react-social)

## Getting started

```zsh
npm install @sugarshin/react-social
```

## Usage

```js
import React from 'react';
import {
  FacebookButton,
  FacebookCount
} from 'react-social';

class App extends React.Component {

  constructor(props) {
    super(props);
  }

  render() {
    return (
      <FacebookButton url={this.props.url}>
        <FacebookCount url={this.props.url} />
        {`Share ${this.props.url}`}
      </FacebookButton>
    );
  }
}

React.render(<App url={'https://github.com/sugarshin/react-social'} />, document.body);
```

## Count (FacebookCount, TwitterCount, PinterestCount) API

### Props

##### element

Change the element the component renders into default is span.

##### url

The url you want to get the count of, default is `window.location`.

### Methods

##### getCount()

Return the social count.

## Button (FacebookButton, TwitterButton, PinterestButton) API

### Props

##### element

Change the element the component renders into default is button.

##### url

The url you want to share, default is `window.location`.

##### media (required for Pinterest)

Url of an image, required for PinterestButton.

## Styles

The components pass their props down to their element including `className` and
`style`.

## License

[MIT][license-url]

© sugarshin

[npm-image]: http://img.shields.io/npm/v/react-social.svg
[npm-url]: https://www.npmjs.org/package/react-social
[bower-image]: http://img.shields.io/bower/v/react-social.svg
[bower-url]: http://bower.io/search/?q=react-social
[travis-image]: http://img.shields.io/travis/sugarshin/react-social/master.svg?branch=master
[travis-url]: https://travis-ci.org/sugarshin/react-social
[gratipay-image]: http://img.shields.io/gratipay/sugarshin.svg
[gratipay-url]: https://gratipay.com/sugarshin/
[coveralls-image]: https://coveralls.io/repos/sugarshin/react-social/badge.svg
[coveralls-url]: https://coveralls.io/r/sugarshin/react-social
[github-ver-image]: https://badge.fury.io/gh/sugarshin%2Freact-social.svg
[github-ver-url]: http://badge.fury.io/gh/sugarshin%2Freact-social
[license-image]: http://img.shields.io/:license-mit-blue.svg
[license-url]: http://sugarshin.mit-license.org/
[downloads-image]: http://img.shields.io/npm/dm/react-social.svg
[dependencies-image]: http://img.shields.io/david/sugarshin/react-social.svg
npm package: @sugarshin/renovate-config
Description: My shareable config for Renovate
Author: Shingo Sato
Latest version: 7.0.0

# @sugarshin/renovate-config

[![CircleCI][circleci-image]][circleci-url]
[![npm version][npm-image]][npm-url]
[![License][license-image]][license-url]

My shareable config for [Renovate](https://renovatebot.com/)

## Usage

Just extends in `renovate.json` .

```json
{
  "extends": ["@sugarshin"]
}
```

You don't have to do `npm install @sugarshin/renovate-config` . Renovate fetches it from npm registry automatically.

## Presets

### `@sugarshin (default)`

```json
{
  "extends": [
    "@sugarshin"
  ]
}
```

### `@sugarshin:js-app`

```json
{
  "extends": [
    "@sugarshin:js-app"
  ]
}
```

### `@sugarshin:js-lib`

```json
{
  "extends": [
    "@sugarshin:js-lib"
  ]
}
```

## License

[MIT][license-url]

© sugarshin

[npm-image]: https://img.shields.io/npm/v/@sugarshin/renovate-config.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/@sugarshin/renovate-config
[circleci-image]: https://circleci.com/gh/sugarshin/renovate-config.svg?style=svg&circle-token=5dbe2d23ddf6981f5f30fa3457d8b63a6c7bbd43
[circleci-url]: https://circleci.com/gh/sugarshin/renovate-config/tree/master
[license-image]: https://img.shields.io/:license-mit-blue.svg?style=flat-square
[license-url]: https://sugarshin.mit-license.org/