open-index/open-npm huggingface dataset:
npm package: @portaljs/remark-callouts
Description: Remark plugin to add support for blockquote-based admonitions/callouts
Author: Rufus Pollock
Latest version: 1.0.5

# @portaljs/remark-callouts

Remark plugin to add support for blockquote-based callouts/admonitions similar to the approach of [Obsidian](https://help.obsidian.md/How+to/Use+callouts) and [Microsoft Learn](https://learn.microsoft.com/en-us/contribute/markdown-reference#alerts-note-tip-important-caution-warning) style.

Using this plugin, markdown like this:

```md
> [!tip]
> hello callout
```

Would render as a callout like this:

<img width="645" alt="Tip callout block" src="https://user-images.githubusercontent.com/42637597/193016397-49a90b44-cf3d-4eeb-9ad6-c0c1e374ed27.png">

## Features supported

- [x] Supports blockquote style callouts
- [x] Supports nested blockquote callouts
- [x] Supports 13 types out of the box (with appropriate styling in default theme) - see list below
- [x] Supports aliases for types
- [x] Defaults to note callout for all other types eg. `> [!xyz]`
- [x] Supports dark and light mode styles

Future support:

- [ ] Support custom types and icons
- [ ] Support custom aliases
- [ ] Support Foldable callouts
- [ ] Support custom styles

## Geting Started

### Installation

```bash
npm install remark-callouts
```

### Usage

```js
import callouts from "remark-callouts";

await remark()
  .use(remarkParse)
  .use(callouts)
  .use(remarkRehype)
  .use(rehypeStringify).process(`\
> [!tip]
> hello callout
`);
```

HTML output

```js
<div>
  <blockquote class="callout">
    <div class="callout-title tip">
      <span class="callout-icon">
        <svg>...</svg>
      </span>
      <strong>Tip</strong>
    </div>
    <div class="callout-content">
      <p>hello callout</p>
    </div>
  </blockquote>
</div>
```

Import the styles in your .css file

```css
@import "remark-callouts/styles.css";
```

or in your app.js

```js
import "remark-callouts/styles.css";
```

### Supported Callout Types

- note
- tip `aliases: hint, important`
- warning `alises: caution, attention`
- abstract `aliases: summary, tldr`
- info
- todo
- success `aliases: check, done`
- question `aliases: help, faq`
- failure `aliases: fail, missing`
- danger `alias: error`
- bug
- example
- quote `alias: cite`

# Change Log

## [2.0.0] - 2022-11-21

### Added

- Classname for icon.

### Changed

- Extract css styles which can be imported separately.

## [1.0.2] - 2022-11-03

### Fixed

- Case insensitive match for types.

## License

MIT
npm package: @portalnesia/dayjs-plugins
Description: Custom Dayjs Plugins for Portalnesia
Author: Putu Aditya
Latest version: 1.0.1

# Dayjs Plugins

Custom dayjs plugins for Portalnesia.

## Quick start

First, install the build from npm or yarn

```bash 
npm install --save @portalnesia/dayjs-plugins
```

Import and extends your dayjs

```js
import dayjs from 'dayjs'
import plugins from '@portalnesia/dayjs-plugins'

dayjs.extend(plugins);
```

## API

### time_ago

Get time_ago format of date and returns object of time_ago format and unix timestamp

```ts
{
  /* Time ago string */
  time_ago: string
  /* Unix timestamp (in second) */
  timestamp: number
}
```

> This function requires `relativeTime` plugins

Example

```js
const date = dayjs('2021-12-20');
const time_ago = date.time_ago();

console.log(time_ago);

/**
 * {
 *    format: '3 weeks ago',
 *    timestamp: 1639933200 
 * }
 * /
```

### pn_format

Get custom format

Format type:

- minimal (*default*) &mdash; 01 Jan 2022
- fulldate &mdash; 01 January 2022
- full &mdash; 01 January 2022, 10:30
- time  &mdash; 10:30

Example

```js
const date = dayjs('2022-02-20');
const format = date.pn_format('fulldate');

console.log(format);

/**
 * 20 February 2022
 * /
```

### range_format

Get range format from current date and argument's date

Example

```js
const a = dayjs('2022-02-20');
const b = dayjs('2022-01-15');
const c = dayjs('2021-12-18');
const b = dayjs('2022-02-27');

const range = a.range_format(d);
const range2 = b.range_format(d);
const range3 = c.range_format(d);

console.log(range)

/**
 * 20 - 27 February 2022
 * 15 January - 27 February 2022
 * 18 December 2021 - 27 February 2022
 * /
```
npm package: @portalnesia/utils
Description: Utility for Portalnesia
Author: Putu Aditya
Latest version: 1.1.10

[![Test](https://github.com/portalnesia/portalnesia-utils/actions/workflows/utils-test.yml/badge.svg)](https://github.com/portalnesia/portalnesia-utils/actions/workflows/utils-test.yml)

# portalnesia-utils

Utility Function for Portalnesia NodeJS
npm package: @portals-fi/galaxy-guide
Description: A template for TypeScript projects with pre-configured tooling
Author: Portals
Latest version: 3.0.1

# Galaxy Guide

This repo contains the shared libraries and common code of the Portals Galaxy System.

## How to run

```bash
# install
$ npm i

# build typechain files
$ npm run typechain:build

# build project
$ npm run build

# run tests
$ npm run test
```
npm package: @portals-fi/serverless-webpack-prisma
Description: When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.
Author: mrunbanked@portals.fi
Latest version: 1.1.1

# Serverless Webpack Prisma

When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engines.

## How to use?

First, install the package by entering the following command.

```sh
npm install -D serverless-webpack-prisma
```

Add the corresponding plugin under the webpack plugin as shown below.

```yaml
plugins:
  - serverless-webpack
  - serverless-webpack-prisma
```

If you have already used the generate script below, please delete it.

```yaml
custom:
  webpack:
    packagerOptions:
      scripts:
        - prisma generate
```

This plugin also has some additional configs:

```yaml
custom:
  prisma:
    installDeps: false # Passing false will not install Prisma dependency during the build process. Default: true
    prismaPath: ../../ # Passing this param, plugin will change the directory to find the dir prisma containing the prisma/prisma.schema
    dataProxy: false # Passing this param, plugin will create the prisma client for use with a data proxy see: https://www.prisma.io/docs/data-platform/data-proxy
```

Congratulations. The setup is complete. In the future, packaging will automatically delete unnecessary resources.

```
Serverless: Generate prisma client for app...
Serverless: Remove unused prisma engine:
Serverless: - node_modules/.prisma/client/libquery_engine-darwin.dylib.node
Serverless: - node_modules/@prisma/engines/introspection-engine-darwin
Serverless: - node_modules/@prisma/engines/libquery_engine-darwin.dylib.node
Serverless: - node_modules/@prisma/engines/migration-engine-darwin
Serverless: - node_modules/@prisma/engines/prisma-fmt-darwin
```