open-index/open-npm huggingface dataset:
npm package: @fredli74/typr
Description: TypeScript fork of https://github.com/photopea/Typr.js
Author: Fredrik Lidström
Latest version: 0.3.9

# Typr.ts  

TypeScript class wrapper for [photopea/Typr.js](https://github.com/photopea/Typr.js).

Design goal was to keep the core Typr.js fork in a separate [branch](https://github.com/fredli74/Typr.ts/tree/Typr.js) as close to the original as possible to make eventual merging easier.

As of May 2020, the official photopea Typr.js project switched to using HarfBuzz and threw a lot of the font format parsing out. For that reason, my fork will have to continue it's own path.

I use this library in one of my own TypeScript projects and have only added class features that I needed.

* `Typr.parse(buffer)` is done through the class constructor `new typr.Font(buffer)`
* `Typr.U` functions are members of the class `font.codeToGlyph(code)`

#### Installation

```sh
npm install @fredli74/typr --save-dev
```

#### node load example
```typescript
import * as fs from "fs";
import * as typr from '@fredli74/typr';

function toArrayBuffer(buf: Buffer) {
	let ab = new ArrayBuffer(buf.length);
	let view = new Uint8Array(ab);
	for (let i = 0; i < buf.length; ++i) {
		view[i] = buf[i];
	}
	return ab;
}
const data = fs.readFileSync("filename.ttf");
const font = new typr.Font(toArrayBuffer(data));
```
npm package: @fredmarques/eslint-config
Description: ESLint configuration used by Fredmarques.
Latest version: 1.0.2

# ESLint config

## Whats included?

- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;

## Setup

### React (with Next.js)

Install dependencies:
```sh
npm i -D eslint @fredmarques/eslint-config
```
Inside `.eslintrc.json`
```json
{
  "extends": [
    "@fredmarques/eslint-config/next", 
    "next/core-web-vitals"
  ]
}
```

### React (without Next.js)

Install dependencies:
```
npm i -D eslint @fredmarques/eslint-config
```
Inside `.eslintrc.json`
```json
{
  "extends": "@fredmarques/eslint-config/react"
}
```

### Node.js

Install dependencies:
```sh
npm i -D eslint @fredmarques/eslint-config
```
Inside `.eslintrc.json`
```json
{
  "extends": "@fredmarques/eslint-config/node"
}
```

## Editor setup

### vscode
Be sure you have the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) extension installed. Uninstall prettier extension if you have it installed.

```json
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "editor.formatOnSave": false
}
```

### Credits
This settings were inspired on [@RocketSeat's repo](https://github.com/Rocketseat/eslint-config-rocketseat)
npm package: @fredmilhau/npm-dummy-lib
Description: this is a simple template of npm typescript lib
Author: toto
Latest version: 1.0.9

# npm-dummy-lib

this is a simple template of npm typescript lib

https://codeburst.io/https-chidume-nnamdi-com-npm-module-in-typescript-12b3b22f0724

https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c

## Installation 
```sh
npm install @fredmilhau/npm-dummy-lib --save
yarn add @fredmilhau/npm-dummy-lib
bower install @fredmilhau/npm-dummy-lib --save
```

## Usage

### Javascript

```javascript
var pluralise = require('mypluralize');
var boys = pluralise.getPlural('Boy');
```
```sh
Output should be 'Boys'
```

### TypeScript
```typescript
import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
```
```sh
Output should be 'Geese'
```

### AMD
```javascript
define(function(require,exports,module){
  var pluralise = require('mypluralize');
});
```

## Test 
```sh
npm run test
```
npm package: @fredperr/excavator-ui
Description: ## Getting started
Latest version: 0.5.0

# Excavator UI (extension of Excavator)

## Getting started

### Installation

```bash
pnpm install @fredperr/excavator-ui
```

If you use the UI extensions, you will need to configure `tailwindcss` and `postcss`:


**In your `postcss.config.js`:**
```javascript
export default {
  plugins: {
    tailwindcss: {},
    autoprefixer: {},
  },
}
```

**In your `tailwind.config.js`:**
```typescript
import path from "path";
import type { Config } from "tailwindcss";
import sharedConfig from "@fredperr/excavator-config-tailwind";

const config: Pick<Config, "content" | "presets"> = {
  content: [
    "./src/app/**/*.tsx",
    path.join(path.dirname(require.resolve("@fredperr/excavator-ui")), "./**/*.{js,mjs,mdx,tsx,ts}"),
  ],
  presets: [sharedConfig],
  plugin: [require('@fredperr/excavator-config-tailwind/tailwind-config')],
};

export default config;
```