open-index/open-npm huggingface dataset:
npm package: @sstone1/repository-json-schema
Description: Converts TS classes into JSON Schemas using TypeScript's reflection API
Author: IBM Corp.
Latest version: 5.0.0

# @loopback/repository-json-schema

Convert a TypeScript class/model to a JSON Schema for users, leveraging
LoopBack4's decorators, metadata, and reflection system.

## Overview

This package provides modules to easily convert LoopBack4 models that have been
decorated with `@model` and `@property` to a matching JSON Schema Definition.

## Installation

```shell
$ npm install --save @loopback/repository-json-schema
```

## Basic use

```ts
import {getJsonSchema} from '@loopback/repository-json-schema';
import {model, property} from '@loopback/repository';

@model()
class MyModel {
  @property()
  name: string;
}

const jsonSchema = getJsonSchema(MyModel);
```

The value of `jsonSchema` will be:

```json
{
  "title": "MyModel",
  "properties": {
    "name": {
      "type": "string"
    }
  }
}
```

## Contributions

- [Guidelines](https://github.com/loopbackio/loopback-next/blob/master/docs/CONTRIBUTING.md)
- [Join the team](https://github.com/loopbackio/loopback-next/issues/110)

## Tests

Run `npm test` from the root folder.

## Contributors

See
[all contributors](https://github.com/loopbackio/loopback-next/graphs/contributors).

## License

MIT
npm package: @sstorsveen/maths
Description: Maths library for JS/TS
Author: Simen Storsveen
Latest version: 2.0.1

# maths-js

A small TypeScript/JavaScript library of mathematical functions, mainly vector and matrix utilities.


## Documentation

[TSDoc API reference](https://sstorsveen.codeberg.page/maths-js/api/)


## Installation

As an npm package:

```bash
$ npm install @sstorsveen/maths
```


## Sample usage

Create a file `sample.ts`:

```typescript
// import a module
import * as vec2 from '@sstorsveen/maths/vec2';

// initialize a new vector object
const v = vec2.of(1.0, 1.0);

// normalise the vector
vec2.norm(v);

// output the result
console.log(`v = [ ${v.x} ${v.y} ]`);
```

Compile to JavaScript using the [TypeScript](https://github.com/Microsoft/TypeScript) compiler:

```bash
$ tsc sample.ts
```

Bundle with e.g. [Google Closure Compiler](https://github.com/google/closure-compiler):

```bash
$ google-closure-compiler                        \
    --process_common_js_modules=true             \
    --module_resolution=NODE                     \
    --js=node_modules/@sstorsveen/maths/*.js     \
    --js=sample.js                               \
    --js_output_file=out.js
```

Run the bundled code to see the result:

```bash
$ node out.js

v = [ 0.7071067811865475 0.7071067811865475 ]
```
npm package: @sstraatemans/react-readmore
Description: a fully customizable read more component for React
Author: Steven Straatemans
Latest version: 1.0.5

<p align="center">
  <b>React Read More</b> is a simple, fully customizable component which gives you the ability to truncate a large text, by line, character or word count.
 <br/>
  <img alt="npm" src="https://img.shields.io/npm/v/@sstraatemans/react-readmore">
  <img alt="npm bundle size" src="https://img.shields.io/bundlephobia/min/@sstraatemans/react-readmore">
</p>

## Install

```bash
$ npm install react-readmore --save-dev
```

## Test

You can test the functionality of the app by going to  
`https://react-read-more.sstraatemans.vercel.app/`

## Usage

---

### Basic

```js
import ReadMore from 'react-readmore';
const App: React.FC = () => {
    return <ReadMore maxLines="{3}">Lorem ipsum dolor sit amet, consectetur...</ReadMore>;
};
```

### Style button

```js
import ReadMore from 'react-readmore';
const App: React.FC = () => {
    return (
        <ReadMore maxLines="{3}" buttonClassName="class-name">
            Lorem ipsum dolor sit amet, consectetur...
        </ReadMore>
    );
};
```

### overwrite ellipsis

```js
import ReadMore from 'react-readmore';
const App: React.FC = () => {
    return (
        <ReadMore maxLines="{3}" ellipsis="***">
            Lorem ipsum dolor sit amet, consectetur...
        </ReadMore>
    );
};
```

### overwrite label names

```js
import ReadMore from 'react-readmore';
const App: React.FC = () => {
    return (
        <ReadMore maxLines="{3}" readMoreLabel="Lees meer" readLessLabel="Lees minder">
            Lorem ipsum dolor sit amet, consectetur...
        </ReadMore>
    );
};
```

### Parameters

| Name            | Description                                   | Type   | Default value |
| --------------- | :-------------------------------------------- | :----- | :------------ |
| maxCharacters   | the max. amount of characters before truncate | number | null          |
| maxLines        | the max. amount of lines before truncate      | number | null          |
| maxWords        | the max. amount of words before truncate      | number | null          |
| ellipsis        | the ellipsis                                  | string | `...`         |
| readMoreLabel   | the label of the read more button             | string | `read more`   |
| readLessLabel   | the label of the read less button             | string | `read less`   |
| buttonClassName | the classname to style the button             | string | null          |

Either MaxWords, MaxCharacters or MaxLines is mandatory

## License

react-readmore is licensed under the MIT license.