open-index/open-npm huggingface dataset:
npm package: @log4js2/sns-appender
Description: Appends logs to AWS simple notification service
Author: Robin Schultz
Latest version: 1.0.0

# sns-appender
An appender for [@log4js2/core](https://github.com/log4js2) that sends log events to an SNS topic to be handled by AWS. 

[![Build Status](https://travis-ci.org/log4js2/sns-appender.svg?branch=master)](https://travis-ci.org/log4js2/sns-appender)
[![codecov](https://codecov.io/gh/log4js2/sns-appender/branch/master/graph/badge.svg)](https://codecov.io/gh/log4js2/sns-appender)
[![dependencies](https://david-dm.org/log4js2/sns-appender.svg)](https://david-dm.org/log4js2/sns-appender)

## Installation

```bash
npm install --save @log4js2/core @log4js2/sns-appender
```

## Configuration

Set up the SNS appender in the `configure` method.

```typescript
import {configure, LogLevel} from '@log4js2/core';
import SNSAppender from '@log4js2/sns-appender';

configure({
    layout : '%d [%p] %c - %m %ex',
    appenders : [{
        name: 'sns',
        appender: SNSAppender,
        level: LogLevel.FATAL,
        config: {
            application: 'MyApp', // optional
            protocol: ['email', 'sms'],
            region: 'us-east-1',
            topicArn: 'arn:aws:sns:us-east-1:123456789012:errors'
        }
    }]
});
```

_*Note: it is probably a good idea to only use SNS appending when a high level error occurs, otherwise you can 
pollute your stream with unimportant logs. Use filters and logging levels to ensure logs only are received when necessary._

## Handling the SNS

### SNS Subscriptions
The `SNSAppender` configuration object allows you to configure one or multiple protocols. See the
[SNS subscribe documentation](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html) for which protocols can be used.

### Handling raw JSON
The SNS record contains a `log` field with the log that caused the SNS appender to trigger. It also contains a `raw` field with the unformatted log event (for easier parsing).

```json
{
  "application": "MyApplication",
  "log": "2019-02-12 12:55:32.000 [INFO] Doing something \n ...",
  "raw": {
    "level": 100,
    "error": "An Unexpected Error",
    "message": "An error occurred",
    ...
  }
}
```

## Contributors
Library built and maintained by [Robin Schultz](http://anigenero.com)

If you would like to contribute (aka buy me a beer), you can send funds via PayPal at the link below.

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLT7SZ2XFNEUQ)
npm package: @log_g/check-env
Description: Makes sure that all required environment variables are set.
Author: Martin Ek
Latest version: 1.3.1

# check-env [![CircleCI](https://circleci.com/gh/ekmartin/check-env.svg?style=svg)](https://circleci.com/gh/ekmartin/check-env)

> Makes sure that all required environment variables are set. 


## Install

```sh
$ npm install --save check-env
```


## Usage

```js
var checkEnv = require('check-env');
checkEnv(['REQUIRED_VAR', 'OTHER_VAR', 'ENV_VAR']);
// => Throws an error if one of the variables aren't set.
```

## CLI Usage

1. Install as a project dependency as above
2. Add to a [lifecycle script](https://docs.npmjs.com/misc/scripts) such as
   `prestart`
3. `npm start` will bail out (`exit(1)`) with a hard to miss error message if environment variables are not set

### Example:

In package.json:

```json
{
  "prestart": "check-env AWS_KEY MONGO_URL",
  "start": "node index.js"
}
```


```
$ echo $MONGO_URL
# (nothing)

$ npm start
 ________________________________________
< Missing environment variable MONGO_URL >
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

$ echo $?
1
```
npm package: @logaflow/react
Description: Streamline user feedback collection with Logaflow. Efficiently collect feedback from your users to accelerate bug fixes and increase product impact.
Author: Antunes
Latest version: 1.0.18

# react

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test react` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @logan-org/swap-ui
Description: SWAP UI Framework. www.swap.work
Author: kcin1993
Latest version: 1.0.62

<img src="https://raw.githubusercontent.com/yosgo-open-source/swap-ui/master/src/SWAPLogo/SWAP_LOGO_01.svg" width="150" />

# 關於 SWAP-UI

基於 [@material-ui/core](https://material-ui.com/) 的前端框架來開發 SWAP 專屬的介面框架，這個框架的特性如下：

1. 標準化元件。封裝 SWAP 服務內常見的介面場景，減少開發時重新定義相同的佈局、函式...並讓介面保持一致
2. 易於使用。儘量不需要再寫額外的輔助函式或是過於多層的元件包裝就能使用，避免 Material-ui 多層包裝的缺點

想要參考 swap-ui 可以透過以下方式：

1. 直接訪問 swap 的網站 [www.swap.work](www.swap.work)
2. 瀏覽 <a href="https://yosgo-open-source.github.io/swap-ui/?path=/docs/swaplogo--%E8%AA%8D%E8%AD%98" target="_blank">Storybook</a>

即將新增

1. SWAPModal: 增加支援多步驟的 Modal 視窗
1. SWAPBanner: 顯示於頁面上的警示訊息
1. SWAPCopyField：可複製文字至剪貼簿的輸入框
1. SWAPIncomeAndExpenseTypeField：依據工作內容提供所得類型的建議
1. SWAPPage: 讓用戶在完整的頁面中完成某件事情
1. SWAPAnnotatedLayout: 用於帳戶設定頁面中，解釋各類型設定

# 安裝

```
# peerDependencies
$ yarn add react react-dom styled-components @material-ui/core @material-ui/icons

# install swap-ui
$ yarn add @yosgo/swap-ui
```

# 開發

```
# 產生一個元件範本
$ yarn generate NewComponentName

# 使用本機的 storybook 來瀏覽元件
$ yarn storybook
```

# 發佈

```
# 發佈套件到 NPM 上
$ npm publish

# 更新 gh-page 上的 Storybook
$ yarn deploy-storybook

# 確認發佈狀態
$ npm show @yosgo/swap-ui
```

# 參考資料

- [Creating a React Component Library using Rollup, Typescript, Sass and Storybook](https://blog.harveydelaney.com/creating-your-own-react-component-library/)
- [Material-ui and Typescript error when bundling #29](https://github.com/transitive-bullshit/react-modern-library-boilerplate/issues/29#issuecomment-635883117)
- [Shopify Polaris](https://5d559397bae39100201eedc1-jyzwfelqxv.chromatic.com/)
npm package: @logan1x/devdash-cli
Description: A portfolio of Khushal packaged as an NPM module
Author: Khushal Sharma
Latest version: 0.1.6

# DevDash

A portfolio of mine packaged as an NPM module with a command-line interface (CLI).

## Installation

```bash
npm install -g @logan1x/devdash-cli
```

## Usage

To run the CLI, simply type the following command in your terminal:

```bash
devdash
```

For specific commands, type depending on your needs.

### Example for projects type:

```bash
devdash projects
```