open-index/open-npm huggingface dataset:
npm package: @plasticine-monitor-sdk/browser
Description: sdk runtime in browser
Author: Plasticine-Yang
Latest version: 0.1.0

# @plasticine-monitor-sdk/browser

## Usage

```ts
import { init } from '@plasticine-monitor-sdk/browser'

init({ url: 'xxx', projectId: 'xxx', enableLogger: true })
```

如果希望调用 SDK 内核实例上的方法，可以通过以下两种方式获取内核实例

1. 通过包导出的 `getBrowserKernel` 函数获取

```tsx
import { getBrowserKernel } from '@plasticine-monitor-sdk/browser'

const Foo = () => {
  return (
    <button
      onClick={() => {
        getBrowserKernel()?.captureError(new Error('手动调用 captureError'))
      }}
    >
      手动调用 captureError
    </button>
  )
}
```

2. 引入全局类型声明文件后通过 `window` 获取

`tsconfig.json`

```json
{
  "compilerOptions": {
    "types": ["@plasticine-monitor-sdk/browser/globals"]
  }
}
```

```tsx
const Foo = () => {
  return (
    <button
      onClick={() => {
        window?__PLASTICINE_MONITOR__.captureError(new Error('手动调用 captureError'))
      }}
    >
      手动调用 captureError
    </button>
  )
}
```
npm package: @plasticut/express-async-await
Description: Express.js async/await extention
Author: Maxim Dorokhov
Latest version: 1.0.2

### express-async-await

This module adds the ability to handle exceptions that raises in async route handlers.

```javascript
const {NotFound} = require('http-errors');
require('@plasticut/express-async-await');
const app = require('express')();

app.get('/user/:userId', async (req, res) => {
  const user = await User.findById(req.params.userId);

  if (!user) throw new NotFound('User not found.');

  res.status(200).json(user);
});
```
npm package: @plata/prettier-config
Description: Shared Prettier config for all [@plata](https://github.com/platadev) projects
Latest version: 0.2.0

# Prettier config

Shared Prettier config for all [@plata](https://github.com/platadev) projects

## Installation

```bash
  npm install @plata/prettier-config
  # or
  yarn add @plata/prettier-config
```

## Usage

`prettier.config.js`

```typescript
module.exports = require('@plata/prettier-config');
``


## Feedback

If you have any feedback, please reach out to us at [@albzrs](https://twitter.com/albzrs)


## License

[MIT](https://choosealicense.com/licenses/mit/)

```
npm package: @plata/tsconfig
Description: Shared TypeScript config for all @plata projects
Author: Jose Albizures
Latest version: 0.3.0

# Typescript config

> Shared Typescript config for all [@platadev](https://github.com/platadev) projects

## Installation

```bash
  npm install @plata/tsconfig
  # or
  yarn add @plata/tsconfig
```

then in `tsconfig.json`

```json
{
  "extends": "@plata/tsconfig/tsconfig.json",
  "compilerOptions": {
    "outDir": "dist"
  }
}
```

## Feedback

If you have any feedback, please reach out to me at [@albzrs](https://twitter.com/albzrs)

## License

[MIT](https://choosealicense.com/licenses/mit/)