open-index/open-npm huggingface dataset:
npm package: @hanse-kim/replace-keys
Description: A simple util for replace an object's keys.
Author: hanse-kim
Latest version: 1.0.1

# replace-keys

A simple util for replace an object's keys.

## Usage

```typescript
const obj = {
  foo: {
    bar: 'baz'
  }
};

replaceKeys(obj, {
  foo: 'FOO',
  bar: (key) => key.slice(1),
});
// result: { FOO: { ar: 'baz' } }
```
npm package: @hanseartic/remark-env-directive
Description: substitute environment variables in markdown directive plugin for remark
Author: hanseartic
Latest version: 1.0.3

# env-var remark directive plugin

This remark-plugin allows to resolve an environment variable from a given value into markdown files.

## Installation
### npm
```shell
npm i @hanseartic/remark-env-directive
```
### yarn
```shell
yarn add @hanseartic/remark-env-directive
```

### Pre-Conditions
This plugin needs the [`remark-directive`](https://github.com/remarkjs/remark-directive) plugin to generally enable directives.

### Usage
Given a markdown file `example.md`:
```markdown
# Example with environment variable

:env[VALUE_IN_ENV_VAR]

```

and a processing module `example.js`:
```javascript
import {read} from 'to-vfile'
import {unified} from 'unified'
import remarkParse from 'remark-parse'
// necessary to enable directives in general
import remarkDirective from 'remark-directive'
// the env-var directive itself
import envDirective from '@hanseartic/remark-env-directive'

main()

async function main() {
  const file = await unified()
    .use(remarkParse)
    .use(remarkDirective)
    .use(envDirective)
    .process(await read('example.md'))

  console.log(String(file))
}
```

Following result could be rendered by `VALUE_IN_ENV_VAR="Hi from the environment" node example`:

```markdown
# Example with environment variable

Hi from the environment

```
npm package: @hansekontor/checkout-components
Description: bcash/bcrypto/bfilter components for checkout
Author: Olav
Latest version: 1.3.0

# checkout-components

[bcash](https://github.com/badger-cash/bcash) (eCash Edition) is an alternative implementation of the eCash protocol,
written in node.js.

This repository contains parts of [bcash](https://github.com/badger-cash/bcash) and compatible libraries such as [bcrypto](https://github.com/bcoin-org/bcrypto), [bfilter](https://github.com/bcoin-org/bfilter) and [b70](https://github.com/badger-cash/b70).

Thereby, projects built on eCash that do not require to run a node can use a lighter dependency. 

## Uses
- General Purpose Bitcoin Library

## Install

```
npm install @hansekontor/checkout-components
```