open-index/open-npm huggingface dataset:
npm package: @koc/generate-password
Description: generate random password
Author: KOC
Latest version: 1.0.4

# generatePassword [![Tests](https://github.com/logrithumn/generate-password/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/logrithumn/generate-password/actions/workflows/tests.yml) [![npm version](https://badge.fury.io/js/@koc%2Fgenerate-password.svg)](https://badge.fury.io/js/@koc%2Fgenerate-password)


[![NPM](https://nodei.co/npm/@koc/generate-password.png?downloads=true&downloadRank=true)](http://npmjs.org/package/@koc/generate-password)

- [generatePassword  ](#generatepassword--)
  - [Install](#install)
  - [Usage](#usage)
      - [`generatePassword({options})`](#generatepasswordoptions)
  - [Options](#options)


## Install

```bash
λ npm install @koc/generate-password --save
```

## Usage

#### `generatePassword({options})`

Generate one password with the given options. Returns a string.

```javascript
const {generatePassword} = require('@koc/generate-password');
//import {generatePassword} from '@koc/generate-password';

const password = generatePassword({
  length: 10,
});

// t%0YA!5k#S
```

## Options


| Name                     | Description                                                           | Default Value |
|--------------------------|-----------------------------------------------------------------------|---------------|
| length                   | Integer, length of password.                                          | 8             |
| allowedSymbols           | String, put symbols in password.                                      | !@#$%&        |
npm package: @kocal/eslint-config-generator
Description: An opinionated ESLint config generator for my projects. Comes with AirBnB, Vue, and TypeScript support.
Author: Hugo Alliaume
Latest version: 4.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ESLint config generator

[![](https://img.shields.io/npm/v/@kocal/eslint-config-generator)](https://npmjs.org/package/@kocal/eslint-config-generator)

## Installation

```bash
$ yarn add --dev @kocal/eslint-config-generator eslint@^8.0.0 @babel/eslint-parser@^7.16.0
```

## Usage

In your `.eslintrc.js`:

```js
const { generateConfig } = require('@kocal/eslint-config-generator');

module.exports = generateConfig();
```
npm package: @kocal/eslint-config-generator-common
Description: Common things for @kocal/eslint-config-generator and plugins.
Author: Hugo Alliaume
Latest version: 4.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ESLint config generator (common)

[![](https://img.shields.io/npm/v/@kocal/eslint-config-generator-common)](https://npmjs.org/package/@kocal/eslint-config-generator-common)

This library is used internally by the config generator and the plugins.
npm package: @kocal/eslint-config-generator-plugin-typescript
Description: Add TypeScript support to @kocal/eslint-config-generator.
Author: Hugo Alliaume
Latest version: 4.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ESLint config generator (plugin TypeScript)

[![](https://img.shields.io/npm/v/@kocal/eslint-config-generator-plugin-typescript)](https://npmjs.org/package/@kocal/eslint-config-generator-plugin-typescript)

## Installation

Install the plugin:
```shell
$ yarn add --dev @kocal/eslint-config-generator-plugin-typescript
```

## Usage 

In your `.eslintrc.js`:
```js
// enable TypeScript support
generateConfig({
  typescript: true
});

// enable and configure TypeScript support
generateConfig({
  typescript: {
    vueComponents: true, // allow to lint .vue files, enabled by default if Vue support is enabled 
  }
});
```
npm package: @kocal/eslint-config-generator-plugin-vue
Description: Add Vue support to @kocal/eslint-config-generator.
Author: Hugo Alliaume
Latest version: 4.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ESLint config generator (plugin Vue)

[![](https://img.shields.io/npm/v/@kocal/eslint-config-generator-plugin-vue)](https://npmjs.org/package/@kocal/eslint-config-generator-plugin-vue)

## Installation

Install the plugin:
```shell
$ yarn add --dev @kocal/eslint-config-generator-plugin-vue
```

## Usage 

In your `.eslintrc.js`:
```js
// enable Vue support
generateConfig({
  vue: true
});

// enable and configure Vue support
generateConfig({
  vue: {
    version: 3, // default: 2
    config: 'recommended', // default: 'recommended', available values: 'essential', 'recommended', 'strongly-recommended'
  }
});
```
npm package: @kocal/rollup-plugin-graphql
Description: Convert graphql files to ES6 modules
Author: Kamil Kisiela
Latest version: 1.0.0
Deprecated: Use the official plugin @rollup/plugin-graphql instead.

# rollup-plugin-graphql

Convert GraphQL files to ES6 modules:

:warn: This package is a fork of the [initial rollup-plugin-graphql](https://github.com/kamilkisiela/rollup-plugin-graphql).
This fork is compatible with Rollup ^1.0 - thanks to @bennypowers (https://github.com/kamilkisiela/rollup-plugin-graphql/pull/7).

And myself, I've just published the module on NPM to make the fork more easier to install on a project.

```js
// import a GraphQL Document from a GraphQL file,
import schema from './schema.graphql';

// or import named Query/Mutation
import { FooQuery, FooMutation } from './schema.graphql';
```


## Installation

```bash
npm install --save-dev @kocal/rollup-plugin-graphql
```


## Usage

```js
import { rollup } from 'rollup';
import graphql from 'rollup-plugin-graphql';

rollup({
  entry: 'main.js',
  plugins: [
    graphql()
  ]
});
```


## License

MIT
npm package: @kocal/semantic-release-preset
Description: Kocal's Semantic Release preset
Author: Hugo Alliaume
Latest version: 2.0.21

Semantic Release preset
=======================

[![npm (scoped)](https://img.shields.io/npm/v/@kocal/semantic-release-preset.svg)](https://www.npmjs.com/package/@kocal/semantic-release-preset)
![Node CI](https://github.com/Kocal/semantic-release-preset/workflows/Node%20CI/badge.svg)

## Features

 - Analyze commits by using `angular` preset, commits `build(deps)` are seen as patch 
 - Generate a changelog by using `angular` preset, it will add an entry for every commit types (feat, fix, perf, revert, docs, refactor, build)
 - Publish the release on GitHub, with a tag and a changelog
 - Publish the release on NPM, with a tag

## Installation

```bash
$ yarn add -D semantic-release @kocal/semantic-release-preset
```

## Usage

In Semantic Release configuration file:

```json
{
  "extends": "@kocal/semantic-release-preset"
}
```
npm package: @kocal/web-extension-library
Description: A set of functions used for easily write a web extension
Author: Hugo Alliaume
Latest version: 1.2.1

Library
=======

[![npm version](https://badge.fury.io/js/%40kocal%2Fweb-extension-library.svg)](https://badge.fury.io/js/%40kocal%2Fweb-extension-library)
[![Build Status](https://travis-ci.com/Kocal-Web-Extensions/library.svg?branch=master)](https://travis-ci.com/Kocal-Web-Extensions/library)
[![codecov](https://codecov.io/gh/Kocal-Web-Extensions/library/branch/master/graph/badge.svg)](https://codecov.io/gh/Kocal-Web-Extensions/library)

> A set of functions used to easily write a web extension

Read the [Documentation](https://web-extension-library.netlify.com/).
npm package: @kocan-plugins/eslint
Description: Kocan plugin for [ESLint](https://eslint.org/).
Latest version: 2.0.0-alpha.13

# @kocan-plugins/eslint

Kocan plugin for [ESLint](https://eslint.org/).

Use ESLint with Kocan language server to have better performance and accuracy.

Please note that you should disable ESLint VSCode Extension when use this plugin.

## Usage

`package.json`

```json
{
	"devDependencies": {
		"@kocan-plugins/eslint": "latest",
		"eslint": "latest"
	}
}
```

`kocan.config.js`

```js
const baseConfig = require('./.eslintrc.cjs'); // load your project eslint config

module.exports = {

	plugins: [

		require('@kocan-plugins/eslint')(program => ({
			...baseConfig,
			ignorePatterns: ['**/*.kdu.*'], // ignore virtual files: *.kdu.ts, *.kdu.html, *.kdu.css
			parserOptions: {
				...baseConfig.parserOptions,
				programs: [program], // replace eslint typescript program
			},
		})),
	],
};
```
npm package: @kocan-plugins/prettier
Description: Kocan plugin for [prettier](https://prettier.io/).
Latest version: 2.0.0-alpha.13

# @kocan-plugins/prettier

Kocan plugin for [prettier](https://prettier.io/).

## Usage

`package.json`

```json
{
  "devDependencies": {
    "@kocan-plugins/prettier": "latest"
  }
}
```

`kocan.config.js`

```js
module.exports = {
	plugins: [
		require('@kocan-plugins/prettier')(
			{
				languages: ['html', 'css', 'scss', 'typescript', 'javascript'],
				html: {
					breakContentsFromTags: true,
				},
				ignoreIdeOptions: true,
			},
			// provide your prettier options, otherwise auto resolve config file by plugin
			() => ({
				// ...
			})
		),
	],
};
```
npm package: @kocan-plugins/prettyhtml
Description: Kocan plugin for [PrettyHtml](https://prettyhtml.netlify.app/).
Latest version: 2.0.0-alpha.13

# @kocan-plugins/prettyhtml

Kocan plugin for [PrettyHtml](https://prettyhtml.netlify.app/).

## Usage

`package.json`

```json
{
  "devDependencies": {
    "@kocan-plugins/prettyhtml": "latest"
  }
}
```

`kocan.config.js`

```js
module.exports = {
	plugins: [
		require('@kocan-plugins/prettyhtml')({ printWidth: 100 }),
	],
};
```
npm package: @kocan-plugins/sass-formatter
Description: Kocan plugin for [Sass Formatter](https://sass-formatter.syler.de/).
Latest version: 2.0.0-alpha.13

# @kocan-plugins/sass-formatter

Kocan plugin for [Sass Formatter](https://sass-formatter.syler.de/).

## Usage

`package.json`

```json
{
  "devDependencies": {
    "@kocan-plugins/sass-formatter": "latest"
  }
}
```

`kocan.config.js`

```js
const sassFormatter = require('@kocan-plugins/sass-formatter');

module.exports = {
	plugins: [
		sassFormatter({}),
	],
};
```
npm package: @kocan-plugins/tslint
Description: Kocan plugin for [TSLint](https://palantir.github.io/tslint/).
Latest version: 2.0.0-alpha.13

# @kocan-plugins/tslint

Kocan plugin for [TSLint](https://palantir.github.io/tslint/).

## Usage

`package.json`

```json
{
	"devDependencies": {
		"@kocan-plugins/tslint": "latest",
		"tslint": "latest"
	}
}
```

`kocan.config.js`

```js
module.exports = {

	plugins: [

		require('@kocan-plugins/tslint')([

			new (require('tslint/lib/rules/banTsIgnoreRule').Rule)({
				ruleName: 'ban-ts-ignore',
				ruleArguments: [],
				ruleSeverity: 'warning',
			}),

			new (require('tslint/lib/rules/maxLineLengthRule').Rule)({
				ruleName: 'max-line-length',
				ruleArguments: [40],
				ruleSeverity: 'warning',
			}),
		]),
	],
};
```
npm package: @kocan/kdu-language-plugin-pug
Description: A `KduLanguagePlugin` to support `<template lang="pug">` for `@kocan/kdu-language-server`.
Latest version: 1.2.0

A `KduLanguagePlugin` to support `<template lang="pug">` for `@kocan/kdu-language-server`.

## Usage

1. Install

   `$ npm i -D @kocan/kdu-language-plugin-pug`

2. Add to `tsconfig.json`

   ```jsonc
	{
		"kduCompilerOptions": {
			"plugins": ["@kocan/kdu-language-plugin-pug"]
		}
	}
   ```
npm package: @kocan/monaco
Description: `@kocan/monaco` is used to bridge the language capabilities implemented based on Kocan.js to Monaco Editor, you can expect:
Latest version: 1.5.0

# @kocan/monaco

`@kocan/monaco` is used to bridge the language capabilities implemented based on Kocan.js to Monaco Editor, you can expect:

- Support IntelliSense, Diagnosis, Formatting
- Language behavior is consistent with regular IDEs
- Optimized Performance
- Missing package types are automatically fetched from CDN

It should be noted that this package does not participate in syntax highlighting support and language configuration.

We assume you already know:

- How to create a Monaco Editor
- How to work with Web Worker

## Usage

### Setup worker

```ts
// my-lang.worker.ts
import * as worker from 'monaco-editor-core/esm/vs/editor/editor.worker';
import type * as monaco from 'monaco-editor-core';
import { createLanguageService } from '@kocan/monaco/worker';

self.onmessage = () => {
	worker.initialize((ctx: monaco.worker.IWorkerContext) => {
		return createLanguageService({
			workerContext: ctx,
			config: {
				// ...Language Service Config of my-lang language support
			},
		});
	});
};
```

#### TypeScript Support

```ts
import { createLanguageService } from '@kocan/monaco/worker';
import * as ts from 'typescript';

createLanguageService({
	// ...
	typescript: {
		module: ts as any,
		compilerOptions: {
			// ...tsconfig options
		},
	},
	// Enable auto fetch node_modules types
	dtsHost: createDtsHost('https://unpkg.com/', { typescript: '4.9.5' }),
});
```

### Add worker loader to global env

```ts
import editorWorker from 'monaco-editor-core/esm/vs/editor/editor.worker?worker';
import myWorker from './my-lang.worker?worker';

(self as any).MonacoEnvironment = {
	getWorker(_: any, label: string) {
		if (label === 'my-lang') {
			return new myWorker();
		}
		return new editorWorker();
	}
}
```

### Setup Language Features and Diagnostics

```ts
import type { LanguageService } from '@kocan/language-service';
import { editor, languages, Uri } from 'monaco-editor-core';
import * as KocanMonaco from '@kocan/monaco';

languages.register({ id: 'my-lang', extensions: ['.my-lang'] });

languages.onLanguage('my-lang', () => {
	const worker = editor.createWebWorker<LanguageService>({
		moduleId: 'vs/language/my-lang/myLangWorker',
		label: 'my-lang',
	});
	KocanMonaco.editor.activateMarkers(
		worker,
		['my-lang'],
		'my-lang-markers-owner',
		// sync files
		() => [Uri.file('/Foo.my-lang'), Uri.file('/Bar.my-lang')],
		editor
	);
	// auto close tags
	KocanMonaco.editor.activateAutoInsertion(
		worker,
		['my-lang'],
		// sync files
		() => [Uri.file('/Foo.my-lang'), Uri.file('/Bar.my-lang')],
		editor
	);
	KocanMonaco.languages.registerProvides(worker, ['my-lang'], languages)
});
```
npm package: @kocdigital/sf-interface
Description: Koc Digital Safe Frames Micro-frontend Interface
Author: Özgür Çimen
Latest version: 1.0.5

# @sf/sf-frames

KOÇ
DIGITAL
Safe
Frames

-

Main
Frame
Micro-Frontend
VUE.JS
Interface

### install with npm

````
npm install
````

### build with npm

```
npm run build
```

### Define Main Frame with services

```javascript

const core = {
  store,
  vuetify,
  router
}

defineSf(Vue, {
  ...Components,
  ...core,
  i18n,
  render: h => h(App)
}, {
  ...core,
  dialog,
  ...services
});
```

### Default Services

```javascript
{
    getSolution,
    checkUser,
    createSecureInstance,
    createUnsecureInstance,
    getToken,
    getSettings,
    setConfig,
    signOut
}
```

### Create Main Frame API Instance
```javascript
import {revokeSf} from '@sf/sf-frames';

const sfCore = revokeSf();
const instance = sfCore.services.createSecureInstance(`${config.API.BASEURL}`, {loader: true});

instance.get(url);
instance.post(url, data);
```

### Main Frame API Options
```javascript
interface ApiInstanceOptions {
    customHeaders?: object;
    errorMiddleware?(d: Date): void;
    loader?: boolean;
    disableErrorNotifications?: boolean;
}
```
npm package: @kochax/nx-notion
Description: Nx plugin for Notion
Author: Jovan Kočić
Latest version: 0.0.1-1

# nx-notion

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build nx-notion` to build the library.

## Running unit tests

Run `nx test nx-notion` to execute the unit tests via [Jest](https://jestjs.io).