open-index/open-npm huggingface dataset:
npm package: @sergiou87/fs-admin-temp
Description: Manipulate files with escalated privileges
Author: Max Brunsfeld
Latest version: 0.18.99-gh-desktop

# fs-admin

[![Build Status](https://travis-ci.org/atom/fs-admin.svg?branch=master)](https://travis-ci.org/atom/fs-admin)
[![Build status](https://ci.appveyor.com/api/projects/status/5c5gpb9idn1xcw1y/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/fs-admin/branch/master)

Perform file system operations with administrator privileges.

## Installing

```sh
npm install fs-admin
```

## Packaging (Linux only)

This library uses [PolicyKit](https://wiki.archlinux.org/index.php/Polkit) to escalate privileges when calling `createWriteStream(path)` on Linux. In particular, it will invoke `pkexec dd of=path` to stream the desired bytes into the specified location.

### PolicyKit

Not all Linux distros may include PolicyKit as part of their standard installation. As such, it is recommended to make it an explicit dependency of your application package. The following is an example Debian control file that requires `policykit-1` to be installed as part of `my-application`:

```
Package: my-application
Version: 1.0.0
Depends: policykit-1
```

### Policies

When using this library as part of a Linux application, you may want to install a [Policy](https://wiki.archlinux.org/index.php/PolicyKit#Actions) as well. Although not mandatory, policy files allow customizing the behavior of `pkexec` by e.g., displaying a custom password prompt or retaining admin privileges for a short period of time:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<policyconfig>
  <vendor>Your Application Name</vendor>
  <action id="my-application.pkexec.dd">
    <description gettext-domain="my-application">Admin privileges required</description>
    <message gettext-domain="my-application">Please enter your password to save this file</message>
    <annotate key="org.freedesktop.policykit.exec.path">/bin/dd</annotate>
    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
    <defaults>
      <allow_any>auth_admin_keep</allow_any>
      <allow_inactive>auth_admin_keep</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>
</policyconfig>
```

Policy files should be installed in `/usr/share/polkit-1/actions` as part of your application's installation script.

For more information, you can find a complete example of requiring PolicyKit and distributing policy files in the [Atom repository](https://github.com/atom/atom/pull/19412).
npm package: @sergiovilar/amplitudejs
Description: Fork of Amlpitude.js
Author: 521 Dimensions
Latest version: 2.2.3

[![Amplitude.js Logo](https://open.521dimensions.com/images/amplitudejs/amplitudejs_hero_image.jpg)](https://open.521dimensions.com/amplitudejs)

Amplitude.js is a lightweight javascript library that allows you to control the design of your media controls in your webpage -- not the browser. No dependencies (jQuery not required). Amplitude.js is available under the [MIT License](https://open.521dimensions.com/license.txt).

## Demo

Click the image at the top to be taken to the demo site or [click here](https://open.521dimensions.com/amplitudejs).

## Features
* Completely independent library (no jQuery required)
* 100% customizable design
* Real time audio visualizations
* Simple Soundcloud integration
* Live streams
* Call back functions for events
* Play/Pause
* Stop
* Next Song
* Previous Song
* Shuffle
* Song meta data display

## Documentation
We're huge believers in clear documentation. You can access the [latest documentation here](https://open.521dimensions.com/amplitudejs/docs). If you find errors or places for improvement, submit a pull request with the documentation located at `/docs/DOCUMENTATION.md`. The documentation site reads directly from the GitHub Repo.

## Reporting Issues

If you are experiencing any issues or if you have a feature request, please [open up a new GitHub Issue](https://github.com/521dimensions/amplitudejs/issues/new)

Want to see if you can get a hold of us directly? Just join our Gitter chat and ask away:

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/521dimensions/amplitudejs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
npm package: @sergki/loopback-connector-kv-redis
Description: The non-official Redis KeyValue connector for LoopBack
Author: IBM Corp.
Latest version: 4.0.3

# @sergki/loopback-connector-kv-redis

The non-official Redis KeyValue connector for LoopBack.

## Extended Redis Set Support

This connector includes additional support for Redis set operations. These are useful for managing sets of values such as user sessions, tags, and temporary groups.

### `sadd(modelName, key, values, options, callback)`

Adds one or more members to a Redis set.

Example:
connector.sadd('User', 'onlineUsers', ['user:1', 'user:2'], {}, (err, result) => {
  // result = number of members actually added (0 if already existed)
});

### `srem(modelName, key, values, options, callback)`

Removes one or more members from a Redis set.

Example:
connector.srem('User', 'onlineUsers', ['user:1'], {}, (err, result) => {
  // result = number of members removed
});

### `smembers(modelName, key, options, callback)`

Retrieves all members of a Redis set.

Example:
connector.smembers('User', 'onlineUsers', {}, (err, members) => {
  // members = ['user:2', 'user:3']
});

### `smismember(modelName, key, values, options, callback)`

Checks if one or more values are members of a Redis set. This method requires Redis 6.2 or later.

Example:
connector.smismember('User', 'onlineUsers', ['user:1', 'user:2'], {}, (err, result) => {
  // result = [0, 1] -> user:1 not in set, user:2 is in set
});
npm package: @serglenkov/http-client
Description: TypesScript http client based on decorators
Author: Sergey Lenkov
Latest version: 0.2.1

# http-client
Small TypesScript http client based on decorators

![build lib workflow](https://github.com/sergeylenkov/http-client/actions/workflows/github-actions.yml/badge.svg)
![npm](https://img.shields.io/npm/v/@serglenkov/http-client)

## How it works

Declare class

```
@Http('https://example.com/api/v2')
class API {
  @Get('users')
  public async getUsers(@Response(ResponseType.Json) response?: JSONObject): Promise<User[]> {
    return response as unknown as User[];
  }

  @Get('users/:id')
  public async getUser(@Param('id') id?: number, @Response(ResponseType.Json) response?: JSONObject): Promise<User> {
    return response as unknown as User;
  }
}
```

Make request

```
const api = new API();

const users = await api.getUsers();
const user = await api.getUser(9);
```

See tests for more examples
npm package: @serglenkov/json-serializer
Description: Typescript JSON serializer based on decorators
Author: Sergey Lenkov
Latest version: 0.1.6

# json-serializer
Typescript JSON serializer based on decorators. It allows you to convert json to objects and back.

![build lib workflow](https://github.com/sergeylenkov/json-serializer/actions/workflows/github-actions.yml/badge.svg)
![npm](https://img.shields.io/npm/v/@serglenkov/json-serializer)

## How it works

Declare class

```
class SomeClass {
  @JsonProperty({ field: 'string_field', required: true })
  public textField: string = '';

  @JsonProperty('number_field')
  public numberField: number = 0;

  @JsonProperty({ field: 'object_field', required: true, type: 'object' })
  public objectField: JSONObject = {};

  @JsonProperty({ field: 'date_field', required: true, type: 'date' })
  public dateField: Date = new Date();
}
```

Deserialize class from json

```
 JsonSerializer.Deserialize<SomeClass>(SomeClass, someJson);
```

JsonProperty decorator properties

```
string - json field name

object - JsonPropertyOptions object
```

JsonPropertyOptions

```
field? - json field name, by default it is equal to object field name
required? - mark field as required, by default false
type? - type of json field, 'number' | 'string' | 'boolean' | 'object' | 'date' | 'array'
className? - class name for fields type 'object' | 'array';
defaultValue? - default field value
builder? - function to transform json field value
```

See tests for more examples
npm package: @sergonius/click-boss
Description: Handle all clicks in a single listener
Author: Sergonius
Latest version: 1.0.6

# click-boss

> Handle all clicks in a single listener

## Install

```bash
npm install --save @sergonius/click-boss
# or
yarn add @sergonius/click-boss
```

## Example

```javascript
import ClickBoss from '@sergonius/click-boss';

const elems = document.querySelectorAll('a');

elems.forEach(elem => {
	const fn = event => {
		event.preventDefault();
		ClickBoss.removeEvent({ elem });
	};

	ClickBoss.addEvent({ elem, fn });
});
```
npm package: @sergonius/typa
Description: Make words type themselves
Author: Sergonius
Latest version: 1.0.8

# Typa

> Make words type themselves

## Install

```bash
npm install --save @sergonius/typa
# or
yarn add @sergonius/typa
```

## Example

```html
<div class="typa"></div>
```

+

```javascript
import Typa from '@sergonius/typa';

const typa = new Typa({
	strings: ['do', 'your', 'thing'], // The strings to alternate between
	speed: 100, // The wait time after each letter has been typed
	delay: 1000, // How long to pause for after a string is complete
	loop: true, // Whether to start over after the last word in the string array
	containerSelector: '.typa', // The container selecor. The element must exist beforehand.
	typerClass: 'typa__typer', // A span with this class will be created in the container and will contain the content
	cursorClass: 'typa__cursor', // Optional. Will create another span for the blinking cursor, if you wish
});

typa.start();
```

# BTW

There is also a React version [typa-react](https://github.com/sergonius/typa-react)
npm package: @sergonius/typa-react
Description: Make words type themselves
Author: sergonius
Latest version: 1.0.8

# typa-react

> Make words type themselves

[![NPM](https://img.shields.io/npm/v/@sergonius/typa-react.svg)](https://www.npmjs.com/package/@sergonius/typa-react) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @sergonius/typa-react
# or
yarn add @sergonius/typa-react
```

## Usage

It's a render prop, so you can use it however you want to.

```tsx
import React from 'react';
import Typa from '@sergonius/typa-react';

class Example extends React.PureComponent {
  render() {
    return (
      <Typa
        strings={['do', 'your', 'thing']} // The strings to alternate between
        speed={85} // The wait time after each letter has been typed
        delay={1200} // How long to pause for after a string is complete
        loop={true} // Whether to start over after the last word in the string array
      >
        {string => (
          <React.Fragment>
            <span>{string}</span>
            <span className="cursor" />
          </React.Fragment>
        )}
      </Typa>
    );
  }
}
```

## License

MIT © [sergonius](https://github.com/sergonius)
npm package: @sergor5/ckeditor-nuxt
Description: CKEditor 5 editor for nuxt apps. The component includes all free available plugins (except CKFinder, instead simple upload adapter used) ℹ️ Forked from @blowstack/ckeditor-nuxt
Author: Sergen ORIN
Latest version: 0.3.4

# ckeditor-nuxt

CKEditor 5 editor for nuxt apps. The component includes all free available plugins (except CKFinder, instead simple upload adapter used)
ℹ️ Forked from @blowstack/ckeditor-nuxt

## Requirements

```
yarn add nuxt # OR npm i nuxt
```

## Component integration

```
yarn add @blowstack/ckeditor-nuxt # OR npm install --save @blowstack/ckeditor-nuxt
```

## List of included plugins

- Alignment,
- Autoformat,
- Autolink,
- Autosave,
- BlockQuote,
- Bold,
- Code,
- CodeBlock,
- Essentials,
- FontBackgroundColor,
- FontColor,
- FontFamily,
- FontSize,
- Heading,
- Highlight,
- HorizontalLine,
- Image,
- ImageCaption,
- ImageInsert,
- ImageResize,
- ImageStyle,
- ImageToolbar,
- ImageUpload,
- Indent,
- IndentBlock,
- Italic,
- Link,
- List,
- ListStyle,
- Markdown,
- MathType,
- MediaEmbed,
- PageBreak,
- Paragraph,
- PasteFromOffice,
- RemoveFormat,
- SimpleUploadAdapter,
- SpecialCharacters,
- SpecialCharactersArrows,
- SpecialCharactersCurrency,
- SpecialCharactersEssentials,
- SpecialCharactersLatin,
- SpecialCharactersMathematical,
- SpecialCharactersText,
- Strikethrough,
- Subscript,
- Superscript,
- Table,
- TableCellProperties,
- TableProperties,
- TableToolbar,
- TextTransformation,
- Title,
- TodoList,
- Underline,
- WordCount,

## Usage

```
<template>
........
  <client-only placeholder="loading...">
    <ckeditor-nuxt v-model="contentHolder" :config="editorConfig"  />
  </client-only>
........
</template>

<script>
export default {
    components: {
      'ckeditor-nuxt': () => import(' @blowstack/ckeditor-nuxt')
    },
    data() {
      return {
    	editorConfig: {
          simpleUpload: {
            uploadUrl: 'path_to_image_controller',
            headers: {
              'Authorization': 'optional_token'
            }
          }
        }
      }
   }
}
</script>

```
npm package: @sergor5/vue-tags-input
Description: A tags input component for VueJS with autocompletion, custom validation, templating and much more
Author: Sergen ORIN
Latest version: 2.1.10

# vue-tags-input

A tags input component for VueJS with autocompletion, custom validation, templating and much more

ℹ️ Forked from @johmun/vue-tags-input which seems no longer maintained.

[Demo & Docs](http://www.vue-tags-input.com)(⚠️ → @johmun/vue-tags-input)

## Features

- No dependencies
- Custom validation rules
- Hooks: Before adding, Before deleting ...
- Edit tags after creation
- Fast setup
- Works with Vuex
- Small size: 34kb minified (css included) | gzipped 9kb
- Autocompletion
- Many customization options
- Own templates
- Delete tags on backspace
- Add tags on paste
- Examples & Docs

## Install

NPM

```
npm install @johmun/vue-tags-input
```

CDN

```
<script src="https://unpkg.com/@johmun/vue-tags-input/dist/vue-tags-input.js"></script>
```

## Usage

```html
<template>
  <div>
    <vue-tags-input
      v-model="tag"
      :tags="tags"
      @tags-changed="newTags => tags = newTags"
    />
  </div>
</template>
```

```javascript
<script>
import VueTagsInput from '@johmun/vue-tags-input';

export default {
  components: {
    VueTagsInput,
  },
  data() {
    return {
      tag: '',
      tags: [],
    };
  },
};
</script>
```

## License

[MIT](https://opensource.org/licenses/MIT)

Copyright (c) 2019 Johannes Munari