open-index/open-npm huggingface dataset:
npm package: @kodansha/eslint-config
Description: Set of KODANSHA ESLint Configurations
Author: KODANSHAtech LLC.
Latest version: 0.1.6
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @kodansha/eslint-config

A set of KODANSHA ESLint configuration for TypeScript projects.

It is recommended to use this along with [@kodansha/prettier-config](https://github.com/kodansha/prettier-config).

## Installation

```
npm install -D typescript eslint @kodansha/eslint-config
```

or

```
yarn add -D typescript eslint @kodansha/eslint-config
```

## Usage

### Defaults

To use the defaults preset, put `.eslintrc.js` in your project's root directory:

```js
module.exports = {
  extends: ["@kodansha"],
  root: true,
};
```

### Next.js

To use the preset for Next.js, put `.eslintrc.js` in your project's root directory:

```js
module.exports = {
  extends: ["@kodansha/eslint-config/presets/next"],
  root: true,
};
```

### React.js

To use the preset for React.js, put `.eslintrc.js` in your project's root directory:

```js
module.exports = {
  extends: ["@kodansha/eslint-config/presets/react"],
  root: true,
};
```

### Node.js

To use the preset for Node.js, put `.eslintrc.js` in your project's root directory:

```js
module.exports = {
  extends: ["@kodansha/eslint-config/presets/node"],
  root: true,
};
```

### Nest.js

To use the preset for Nest.js, put `.eslintrc.js` in your project's root directory:

```js
module.exports = {
  extends: ["@kodansha/eslint-config/presets/nest"],
  root: true,
};
```
npm package: @kodansha/prettier-config
Description: KODANSHA Prettier Configurations
Author: KODANSHAtech LLC.
Latest version: 1.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @kodansha/prettier-config

KODANSHA [shareable config](https://prettier.io/docs/en/configuration.html#sharing-configurations) for [Prettier](https://prettier.io/).

## Installation

```shell
npm install -D prettier @kodansha/prettier-config
```

or

```shell
yarn add -D prettier @kodansha/prettier-config
```

## Usage

Add the following line to your project's `package.json`:

```json
{
  // ...
  "prettier": "@kodansha/prettier-config"
}
```
npm package: @kodapan/koda
Description: A library to embed front-end demos
Author: Anders Dahnielson
Latest version: 0.1.5

# Koda

A library to embed front-end demos.

## Installing

You can either install Koda by running yarn (recommended)

```bash
yarn add @kodapan/koda
```

or use npm

```bash
npm install @kodapan/koda
```

## Basic usage

You will need to include the `koda.css` and `koda.js` files.

```html
<link rel="stylesheet" href="koda.css">
<script src="koda.js"></script>
```

Koda is using Prism to style and highlight the code, why you will need to include the Prism theme of your choice that should be used to highlight the code.

```html
<link href="themes/prism.css" rel="stylesheet">
```

Next you need to set up the code in HTML.

```html
<div class="koda" data-selected="js" data-height="250px">
  <code class="language-html" data-code="demo.html"></code>
  <code class="language-css" data-code="demo.css"></code>
  <code class="language-js" data-code="demo.js"></code>
</div>
```

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/dahnielson/koda/tags). 

## Authors

* **Anders Dahnielson** - *Initial work* - [dahnielson](https://github.com/dahnielson)

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* [CodePen](https://codepen.io) for the original concept
* [Cody](https://github.com/lmgonzalves/cody) for the idea to roll our own
npm package: @kodaps/notion-parse
Description: Convert Notion pages to Markdown with frontmatter
Author: David Hockley
Latest version: 0.0.17

# notion-parse
An NPM module for downloading and Notion content and saving it as Markdown for NextJS. In short this takes the data from a page in a database and saves the data as FrontMatter and the content as Markdown. The second part is done by the excellent notion-to-md module.

I use this to download my Notion content and save it as Markdown for my NextJS blog. It's a work in progress, but it's working for me so far.

I also use ContentLayer to make sure my fontmatter has the right fields.

## Usage

Here is how I use the module in my NextJS project.

I have a .env file with the following variables :

```.env
NOTION_SECRET=secret_blablablablabla

NOTION_PORTFOLIO_DATABASE_ID=18abababababababababba
NOTION_NEWSLETTER_DATABASE_ID=19abababababababababba
NOTION_POST_DATABASE_ID=20abababababababababba
````

I then have this script that I run to download the content from Notion and save it as Markdown :

```js

// @ts-check

const NotionParse = require('@kodaps/notion-parse');
const dotenv = require('dotenv');

dotenv.config();

const go = async () => {

  if (process.env.NOTION_SECRET) {
    await NotionParse.parseNotion(process.env.NOTION_SECRET, './src/content', [
      {
        databaseId: process.env.NOTION_PORTFOLIO_DATABASE_ID || '',
        contentType: 'Portfolio'
      },
      {
        databaseId: process.env.NOTION_POST_DATABASE_ID || '',
        contentType: 'Post',
        languageField: 'lang',
        filterFields: [ 'translation', 'createdAt', 'status', 'Type']
      },
    ])
  }

};

go().then(() => {
  console.log('Done');
});

```

This supposed several things :
1. that the files are stored in a subfolder of the folder passed in as parameter (here `./src/content`) based on the content type
2. that the ContentLayer type names map to the subfolders. So for instance for the `Post` content type, the files will be stored in `./src/content/post`
3. that the Notion token and database IDs are stored in environment variables, and that there is one database per content type
4. That the title of the content is stored in a 'title' field in Notion
npm package: @kodasoftware/monitoring
Description: A monitoring library for integrating monitoring and observability platforms and generating logs for monitoring
Author: Koda Software
Latest version: 0.1.0

# Koda Software Monitoring Library

A monitoring library for integrating monitoring and observability platforms and generating logs for monitoring.

## How to use the library

To install this library follow the steps below:

```bash
npm add @kodasoftware/monitoring
```

Once installed you can use the library to do the following:

`logger.ts`

```typescript
import { createLogger } from '@kodasoftware/monitoring';

export const logger = createLogger({ name: process.env.HOSTNAME, logLevel: process.env.LOG_LEVEL });

```

Enjoy!
npm package: @kodasoftware/testing
Description: A typescript testing library for Koa APIs or Cypress e2e testing
Author: Koda Software
Latest version: 0.0.0

# Koda Software Testing Library

A typescript testing library for Koa APIs or Cypress e2e testing. This library provides useful helper Typescript Jest configuration, functions and classes for mocking and generating values for your tests.

## Using this library

You can install this library using the following command

```bash
npm add -D @kodasoftware/testing jest jest-junit ts-jest ts-node
```

It is also recommended to install the following typing for your typescript project

```bash
npm add -D @types/jsonwebtoken @types/jest @types/koda @types/node
```

Once installed you can configure Jest by adding the following files to your project

`jest.config.ts`

```typescript
import type { Config } from 'jest';
import { pathsToModuleNameMapper } from 'ts-jest';

import baseConfig from '@kodasoftware/testing/dist/jest.config';

import { compilerOptions } from './tsconfig.json';

const config: Config = {
  ...baseConfig,
  moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths),
  modulePaths: [compilerOptions.baseUrl],
};

export default config;

```
npm package: @kodasoftware/typescript
Description: A typescript styling guide
Author: Koda Software
Latest version: 0.0.0

# Koda Software Typescript Styling Guide

This styling guide provide configuration and rules for `typescript`, `eslint` and `prettier` that can be used in Koda Software projects to ensure they meet these recommended stylistic choices. It does not inform code quality, merely the look of how code should be written to ensure it is consistent and easy to interpret for developers.

## Using this style guide in your project

In order to use this guide you should first install the following dependencies in your project

```bash
npm add -D eslint prettier prettier-eslint typescript eslint-config-prettier eslint-plugin-node eslint-plugin-prettier eslint-plugin-simple-import-sort @typescript-eslint/eslint-plugin @typescript-eslint/parser
```

Then install this package to your project

```bash
npm add -D @kodasoftware/typescript
```

Then you can add the following files to your Typescript project

`.eslintrc.json`

```json
{
  "extends": "./node_modules/@kodasoftware/typescript/.eslintrc.json"
  // Add any overrides/extensions here...
}

```

`.prettierrc.js`

```javascript
module.exports = {
  ...require('@kodasoftware/typescript/.prettierrc.json')
  // And any overrides/extensions here...
}

```

We also recommend adding the following

`.eslintignore`

```
dist/
```

`tsconfig.json`

This is an example of a typescript configuration you can put into your project that extends the typescript configuration of this library.

```json
{
  "extends": "./node_modules/@kodasoftware/typescript/tsconfig.json",
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "dist",
    "paths": {
      "@/*": ["./src/*"]
    }
    // Add any overrides/extensions here...
  }
}

```

Enjoy!
npm package: @kodbruket/git-commit-stamp
Description: Replaces a string (`GIT_COMMIT`) in a file
Author: Max Malm
Latest version: 0.1.2

# git-commit-stamper

Replaces a string (`GIT_COMMIT`) in a file

## Usage
```sh
yarn add --dev @kodbruket/git-commit-stamp
yarn git-commit-stamp -h
```

## Example
```sh
echo "GIT_COMMIT" > example
node index.js -c example
cat example // 222fe84e7b28f1de86651d5a93dd580406009a54-dirty
```