open-index/open-npm huggingface dataset:
npm package: @offmadisonave/oma-keystone-cms
Description: Contexual CMS for Keystone
Author: Off Madison Ave
Latest version: 1.0.17

OMA Keystone CMS
===================================

Our Keystone CMS "plug-in" provides very basic contextual editing features such as object model property editing and a simple templated page system.  It is dependent on use of Keystone using the Swig templating engine.  The contextual front end UI is currently written in AngularJS.  It is a work in progress that is not intended for public use, but is nonetheless published as a public package for our own purposes.  Use at your own risk.

Installation Instructions

* In your Keystone project: 

```
npm install @offmadisonave/oma-keystone-cms --save
```

* Add the following code to the top of the Keystone project /routes/index.js module body

```
require('@offmadisonave/oma-keystone-cms')(app, {
	indexIsPage: true // If you intend to use the pages feature at the default route
});
```

* Add the following just before the closing body tag of all of your Keystone project layout SWIG files...

```
{{CMS.admin()}}
```

* To make a model object editable...

```
{{CMS.objectHtml('KeystoneListName', listObject, 'editablePropertyName')}}
```

If you intend to use the pages feature:

* Create at least one SWIG template that you intend to use for the CMS and register it in the Keystone Admin UI at http://{yourdomain.com}/keystone/cmstemplates

* To make a page block editable...

```
{{CMS.pageHtml('content_block_name')}}
```

Creating a page is as simple as navigating to /page/{the_slug_you_want} and clicking the Create Page in the CMS footer toolbar.
npm package: @offrain/montonio-api
Description: Montonio Payments API for NodeJS
Author: Rain K.
Latest version: 1.0.0

# montonio-api
Unofficial API for montonio payment gateway

[Montonio Docs](https://payments-docs.montonio.com/#introduction)
# Install

### Install using npm

`npm i @offrain/montonio-api`

# Usage
### Bank Payment Methods
```js
import { montonioApi } from '@offrain/montonio-api';
// Initialize requests with API keys provided from Montonio
const montonio = montonioApi({
  secrectKey: 'MONTONIO_SECRET_KEY',
  accessKey: 'MONTONIO_ACCESS_KEY',
  sandbox: true // optional defaults to false
});

// Get Bank Payment Methods
montonio
  .paymentMethods('FI')
  .then((val) => console.log(val))
  .catch((error) => error);

```
Returns Array of Bank Payment options
```js
[
  {
    "bic": "OKOYFIHH",
    "name": "OP",
    "logo_url": "https://public.montonio.com/images/aspsps_logos/op.png"
  },
  {
    "bic": "DABAFIHH",
    "name": "Danske Bank",
    "logo_url": "https://public.montonio.com/images/aspsps_logos/danske.png"
  },
  {
    "bic": "RVUALT2V",
    "name": "Revolut",
    "logo_url": "https://public.montonio.com/images/aspsps_logos/revolut.png"
  },
  {
    "bic": "CARD",
    "name": "Visa / Mastercard",
    "logo_url": "https://public.montonio.com/images/aspsps_logos/visa.png"
  }
]
```
### Options

- `countryCode` : `EE`, `FI`, `LV` or `LT` _optional, default `EE`

### Create Payment Url

```js
montonio.getPaymentUrl({
  amount: 1,
  merchant_return_url: 'https://example.com/thankyou',
  merchant_reference: 'order_id_23',
});

### Options

```
- `amount` : `Number` Sets price for the gateway
- `merchant_return_url` : The URL `string` where the customer will be redirected back to after completing or cancelling a payment.
- `merchant_reference` : The order reference `string` in the merchant's system (e.g. the order ID).
- `preselected_aspsp` : The bank that the customer chose for this payment if you allow them to select their bank of choice in your checkout. Leave this blank to let the customer choose their bank in [Montonio](https://montonio.com) interface. `_optional`.

Returns payment url `https://[sandbox-]payments.montonio.com?payment_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9`
npm package: @offrain/nordpool
Description: ### Unofficial nordpool-api
Author: Rain K.
Latest version: 2.0.2

# Nordpool API

### Unofficial nordpool-api

When you decide to use this make sure you read
[Nordpool T&Cs](https://www.nordpoolgroup.com/About-us/Terms-and-conditions-for-use/)

# About

This API is a tool to fetch `DayAhead` Prices from NordPool Market

# Install

### Install using npm

`npm i @offrain/nordpool`

# Usage

```js
// ES module
import { nordpool } from '@offrain/nordpool';
const getHourlyRates = async () => {
  const data = await nordpool.hourly({ area: 'FI', vat: 20, currency: 'EUR' });
  console.log("Today's hourly prices:", data);
};

getHourlyRates();
```

```js
// COMMONJS
const { nordpool } = require('@offrain/nordpool');
const getHourlyRates = async () => {
  const data = await nordpool.hourly({ area: 'FI', vat: 20, currency: 'EUR' });
  console.log("Today's hourly prices:", data);
};

getHourlyRates();
```

### Options

- `area`: Energy market area.
  - String or an array of strings, case sensitive. Currently available areas are `EE, LV, LT, AT, DK1,DK2, FI, OSLO, SE1, SE2, SE3`
- `VAT`: Number, pass in local vat % that will return `priceWithVAT` property. If not provided then` VAT nr not provided` will be returned for that prop.
- `currency`: `DKK`, `EUR`, `NOK` or `SEK` _optional, default `EUR`_.

# Returned values

```js
[
  {
    "region": "FI",
    "date": "2021-12-22T22:00:00.000Z", // Local Server Time
    "hour": "00:00", // Local Server Time
    "marketPrice": 181.9,
    "consumerPrice": 21.82,
    "consumerUnit": "snt/kWh"
    "marketUnit": "EUR/mWh"
  }
]
```
npm package: @offset-dev/antd-smart-table
Description: Ant Design's Table with a little extra
Author: offset-dev
Latest version: 0.0.11

# Antd Smart Table
[![NPM](https://img.shields.io/npm/v/@offset-dev/antd-smart-table.svg)](https://www.npmjs.com/package/@offset-dev/antd-smart-table) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Have you ever used [Ant Design]'s Table component and ended up constantly rewriting the same functions?
#### This is for you.

**Antd Smart Table** includes:
- Search Function
- Date Range Function

With more coming soon...

> Made with create-react-library

## Install

```bash
npm install --save @offset-dev/antd-smart-table
yarn add @offset-dev/antd-smart-table
```

## Usage

```jsx
import SmartTable from "@offset-dev/antd-smart-table";
import "antd/dist/antd.css";

const dataSource = [
    {
        key: "1",
        name: "Mike",
        age: 32,
        address: "10 Downing Street",
        date: "2020-01-01T10:00:00-00:00"
    },
    {
        key: "2",
        name: "John",
        age: 42,
        address: "10 Downing Street",
        date: "2020-01-02T10:00:00-00:00"
    },
];

const Page = () => {
    return (
        <SmartTable dataSource={dataSource} columns={[
            {
                title: "Name",
                dataIndex: "name",
                key: "name",
                search: "name",
            },
            {
                title: "Age",
                dataIndex: "age",
                key: "age",
            },
            {
                title: "Address",
                dataIndex: "address",
                key: "address",
                search: "address",
            },
            {
                title: "Date",
                dataIndex: "date",
                key: "date",
                dateRange: "date"
            },
        ]}/>
    )
}
```

## License

MIT © [offset-dev](https://github.com/offset-dev)

[Logo]: https://i.ibb.co/0Vt1LRy/logo.png "Offset Logo"
[Ant Design]: https://ant.design/ "Ant Design"
npm package: @offset-dev/strapi-calendar
Description: Visualize your Strapi content in month, week or daily view
Author: Luis Rodriguez
Latest version: 1.0.0

<p align="center">
  <img src="./assets/logo.png" width="200" alt="Logo" />
</p>
<h1 align="center">Strapi Plugin Calendar</h1>
<p align="center">
  <a href="https://badge.fury.io/js/@offset-dev%2Fstrapi-calendar" target="_blank">
    <img src="https://badge.fury.io/js/@offset-dev%2Fstrapi-calendar.svg" />
  </a>
  <a href="https://github.com/offset-dev/strapi-calendar/actions/workflows/publish.yml" target="_blank">
    <img src="https://github.com/offset-dev/strapi-calendar/actions/workflows/publish.yml/badge.svg" />
  </a>
  <a href="https://github.com/offset-dev/strapi-calendar/actions/workflows/lint.yml" target="_blank">
    <img src="https://github.com/offset-dev/strapi-calendar/actions/workflows/lint.yml/badge.svg" />
  </a>

> Visualize your content in a map with month, weekly and daily view.
> [View on Strapi Marketplace](https://market.strapi.io/plugins/@offset-dev-strapi-calendar)

![](./assets/image.png)

</p>

## V1 Features

- New Calendar Library (Now using [FullCalendar](https://fullcalendar.io))
- New Reset Settings endpoint (/strapi-calendar/clear-settings)
- Fully compatible with Strapi 5
- Now using Document Service API
- Now using Strapi Plugin SDK
- Typescript ♥️
- Eslint & Prettier Config

## Demo

[![](https://cdn.loom.com/sessions/thumbnails/53e30106697044fdb365490a8b48df25-630b2ac775ea1ef6-full-play.gif)](https://www.loom.com/share/53e30106697044fdb365490a8b48df25)

## How to Install

Copy the following code and run from your terminal

```
npm i @offset-dev/strapi-calendar
```

## How to Use

Open the settings page and select the calendar settings.

![](./assets/image2.png)

Here you can select which collection and fields to use.
You can also customize the calendar style and options.

## Coffee Support

Absolutely no pressure, but if you found this plugin helpful and want to buy me a coffee, you can do it [here](https://donate.stripe.com/9AQcPq8MnerG39C8wx)

![Alt Text](https://i.giphy.com/LG1ZZP1Go0D8j7YsWy.webp)
npm package: @offset-earth/certificates
Description: `npm publish` to publish the latest version. ![certificate](./__tests__/fixtures/certificate.png)
Author: Mathieu Dutour
Latest version: 0.4.5

# Ecologi Certificate Generator

`npm publish` to publish the latest version.
![certificate](./__tests__/fixtures/certificate.png)

## Create local gift certificate

If you need to re-create a gift cert for support reasons etc you can uncomment the `fs.writeFile` line and the `generateGiftCard` line at the bottom of the `src/gift.ts` file.

Add the `couponCode` you want to the options object and then run `yarn make-local-cert`! The `gift.pdf` file should appear in the root dir.

## API

- Using a Buffer:

  ```js
  function generateCertificate(
    content: {
      name: string;
      totalTons: number;
      projects: { name: string; tons: number }[];
      startDate: Date;
      endDate: Date;
      issuedAt: Date;
      id: string;
    },
  ): Promise<Buffer>;

  ```

- Using a Stream:

  ```js
  function generateCertificate(
    content: {
      name: string;
      totalTons: number;
      projects: { name: string; tons: number }[];
      startDate: Date;
      endDate: Date;
      issuedAt: Date;
      id: string;
    },
    outputStream: NodeJS.WritableStream,
  ): void;
  ```

## Publishing a new version

- Update the version in package.json
- `npm publish`