open-index/open-npm huggingface dataset:
npm package: @katsobieska/id-generator-app
Description: Short app dedicated for generation of random string with letters and numbers included.
Author: Katarzyna Sobieska
Latest version: 1.0.4

# random-id-app

Short app dedicated for generation of random string with letters and numbers included.

## Getting started

`npm install @katsobieska/id-generator-app@1.0.4`
or
`yarn install @katsobieska/id-generator-app@1.0.4`

## Import

const randomId = require("@katsobieska/id-generator-app");

## Usage

randomId(x);
x = expected length of ID

## Links

GITHUB: https://github.com/KatSobieska/id-generator-app
NPM: https://www.npmjs.com/package/@katsobieska/id-generator-app
npm package: @katsuba/newsapi
Description: A unofficial modern browser interface for NewsAPI.
Author: Igor Katsuba
Latest version: 0.0.6

# @katsuba/newsapi
A unofficial modern browser interface for NewsAPI.

Get breaking news headlines, and search for articles from over 30,000 news sources and blogs with news API. Powered by NewsAPI.org.

## Install
```
npm i @katsuba/newsapi
```
## Test
Comming soon...

## Example
```typescript
import { 
    NewsApi, 
    Countries, 
    ArticleResponse 
} from '@katsuba/newsapi';

const api = new NewsAPi('apiKey');

api.topHeadlines({country: Countries.US})
    .then((res: ArticleResponse) => console.log(res))
```

## Example for Angular 6

[Live demo](https://frontend-notes.firebaseapp.com/)

[Repo](https://github.com/IKatsuba/frontend-notes)

```typescript
// app.module.ts
import { NewsApi } from '@katsuba/newsapi';

@NgModule({
  providers: [
    {provide: NewsApi, useFactory: () => new NewsApi(environment.news.apiKey)}
  ]
})
export class AppModule {
}

//news-api.service.ts
import { Injectable } from '@angular/core';
import { Observable, Subscriber } from 'rxjs';
import { ArticleResponse, EverythingPayload, NewsApi } from '@katsuba/newsapi';

@Injectable({
  providedIn: 'root'
})
export class NewsApiService {
  constructor(private newsApi: NewsApi) {
  }

  public everything(payload: EverythingPayload): Observable<ArticleResponse> {
    return Observable.create((subscriber: Subscriber<ArticleResponse>) => {
      this.newsApi.everything(payload).then(
        res => {
          subscriber.next(res);
          subscriber.complete();
        },
        error => subscriber.error(error)
      );
    });
  }
}
```
npm package: @katsube/mimetypesjs
Description: Return mimetype from filename extension
Author: M.Katsube
Latest version: 1.1.2

# MimeTypes.js
Get mime type from file name / file path. The list of MIME Types from [Apache HTTP Server](https://github.com/apache/httpd) and I added.

A total of 985 types of MIME type are supported. The all list is [here](https://github.com/katsube/mimetypesjs/blob/main/data/mimetypes.pretty.json).
## INDEX
1. [Installation](#installation)
1. [Usage](#usage)
1. [API](#api)
    1. [get](#get)
    1. [set](#set)
    1. [remove](remove)
    1. [listAll](#listall)
1. [License](#license)

## Installation
```shellsession
$ npm install @katsube/mimetypesjs
```

## Usage
```javascript
const mimeTypes = require('@katsube/mimetypesjs')

const a = mimeTypes.get('a.txt')  // "text/plain"
const b = mimeTypes.get('b.html') // "text/html"
const c = mimeTypes.get('/image/logo.jpg')  // "image/jpeg"
```

## API
### get
Returns the MIME type according to the file extension.
```javascript
const mimeTypes = require('@katsube/mimetypesjs')

const a = mimeTypes.get('a.txt')  // text/plain
const b = mimeTypes.get('/var/www/html/b.html') // text/html
```

For undefined extensions, `application/octet-stream` is returned. The default value can be changed with the second argument.

```javascript
const a = mimeTypes.get('a.notdefined', 'text/plain')  // text/plain
```

### set
You can add or override the MIME Type yourself.

```javascript
// Single
mimeTypes.set({ext:'foo', type:'application/foo'})

// Multiple
mimeTypes.set([
    {ext:'foo', type:'application/foo'},
    {ext:'bar', type:'application/bar'},
])
```

### remove
Delete a predefined MIME Type.

```javascript
// Single
mimeTypes.remove('txt')

// Multiple
mimeTypes.remove(['txt', 'html'])
```


### listAll
Get the predefined MIME Type.

```javascript
console.log(mimeTypes.listAll())
```

## License
The MIT License.

The list of MIME Types is [Apache licensed](https://github.com/apache/httpd/blob/trunk/LICENSE)
npm package: @katsutosh/prettier-config
Description: My personal Prettier config
Author: katsutosh
Latest version: 1.0.7

# `@katsutosh/prettier-config`

> My personal [Prettier](https://prettier.io) config.

## Usage

**Install**:

```bash
$ npm install --save-dev @katsutosh/prettier-config
```

**Edit `package.json`**:

```jsonc
{
  // ...
  "prettier": "@katsutosh/prettier-config"
}
```