open-index/open-npm huggingface dataset:
npm package: @sondev-811/editor
Description: Production-grade Tiptap editor wrapper for React
Latest version: 1.0.1

# @my-org/editor

Production-grade Tiptap editor wrapper for React. One dependency instead of many.

## Installation

```bash
npm install @my-org/editor
# or
yarn add @my-org/editor
pnpm add @my-org/editor
```

## Quick Start

```tsx
import { createEditor } from "@my-org/editor";
import { useTipTapEditor, EditorContent } from "@my-org/editor/react";
import "@my-org/editor/styles.css";

function MyEditor() {
  const editor = useTipTapEditor(
    createEditor({
      content: "<p>Hello world</p>",
      onUpdate: ({ editor }) => console.log(editor.getHTML()),
    })
  );

  return <EditorContent editor={editor} />;
}
```

## All-in-One Component

```tsx
import { Editor } from "@my-org/editor/react";
import "@my-org/editor/styles.css";

<Editor
  content={content}
  onUpdate={({ editor }) => setContent(editor.getHTML())}
  minHeight={400}
  placeholder="Write something..."
/>
```

## With Custom Toolbar (EditorProvider)

```tsx
import { EditorProvider, useCurrentEditor, EditorContent } from "@my-org/editor/react";
import "@my-org/editor/styles.css";

function MenuBar() {
  const { editor } = useCurrentEditor();
  if (!editor) return null;
  return (
    <div>
      <button onClick={() => editor.chain().focus().toggleBold().run()}>Bold</button>
      <button onClick={() => editor.chain().focus().toggleItalic().run()}>Italic</button>
    </div>
  );
}

<EditorProvider
  content="<p></p>"
  slotBefore={<MenuBar />}
  onUpdate={({ editor }) => handleContent(editor.getHTML())}
/>
```

## Custom Extensions

```tsx
import { createEditor } from "@my-org/editor";
import { MyCustomExtension } from "./my-extension";

const editor = useTipTapEditor(
  createEditor({
    content: "<p></p>",
    extensions: [MyCustomExtension],
  })
);
```

## Replace Default Extensions

```tsx
createEditor({
  replaceDefaults: true,
  extensions: [/* your extensions only */],
});
```

## API

| Export | Description |
|--------|-------------|
| `createEditor(options)` | Creates editor config with default extensions |
| `useTipTapEditor(options)` | React hook for editor instance |
| `Editor` | All-in-one component |
| `EditorProvider` | Context provider for toolbar pattern |
| `EditorContent` | Renders the editor (from Tiptap) |
| `useCurrentEditor` | Hook to get editor from EditorProvider context |
| `defaultExtensions` | Array of default Tiptap extensions |
| `getDefaultExtensions(overrides)` | Get defaults with optional overrides |

## Included Extensions

- StarterKit (Bold, Italic, Strike, Lists, etc.)
- Blockquote, Code, CodeBlock (with lowlight)
- Heading, HorizontalRule
- Image, Link
- Placeholder, TextAlign, Underline

## Tree-Shaking

The package is tree-shakeable. Import only what you need:

```ts
import { createEditor } from "@my-org/editor";
import { useTipTapEditor } from "@my-org/editor/react";
```

## License

MIT
npm package: @sondh0127/nuxtjs-google-fonts
Description: Google Fonts module for NuxtJS
Latest version: 1.4.0

[![@nuxtjs/google-fonts](./docs/static/preview.svg)](https://google-fonts.nuxtjs.org)

# @nuxtjs/google-fonts

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
[![Codecov][codecov-src]][codecov-href]
[![License][license-src]][license-href]

> [Google Fonts](https://developers.google.com/fonts) module for [NuxtJS](https://nuxtjs.org)

- [✨ &nbsp;Release Notes](https://google-fonts.nuxtjs.org/releases)
- [📖 &nbsp;Documentation](https://google-fonts.nuxtjs.org)

## Features

- Specify fonts by name/variant
- Parse head links to Google Fonts
- Creates only an external link to Google Fonts
- [Support CSS API v2](https://developers.google.com/fonts/docs/css2)
- [Add dns-prefetch](https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch)
- [Add preconnect](https://developer.mozilla.org/en-US/docs/Web/Performance/dns-prefetch#Best_practices)
- [Add preload](https://developer.mozilla.org/pt-BR/docs/Web/HTML/Preloading_content)
- Download css/fonts to local project (No need external resources)
- Encode fonts to base64

[📖 &nbsp;Read more](https://google-fonts.nuxtjs.org)

## Setup

1. Add `@nuxtjs/google-fonts` dependency to your project

```bash
yarn add --dev @nuxtjs/google-fonts # or npm install --save-dev @nuxtjs/google-fonts
```

2. Add `@nuxtjs/google-fonts` to the `buildModules` section of `nuxt.config.js`

```js
{
  buildModules: [
    // Simple usage
    '@nuxtjs/google-fonts',

    // With options
    ['@nuxtjs/google-fonts', { /* module options */ }]
  ]
}
```

:warning: If you are using Nuxt **< v2.9** you have to install the module as a `dependency` (No `--dev` or `--save-dev` flags) and use `modules` section in `nuxt.config.js` instead of `buildModules`.

## Development

1. Clone this repository
2. Install dependencies using `yarn install` or `npm install`
3. Start development server using `yarn dev` or `npm run dev`

## License

[MIT License](./LICENSE)

Copyright (c) Nuxt Community

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@nuxtjs/google-fonts/latest.svg
[npm-version-href]: https://npmjs.com/package/@nuxtjs/google-fonts

[npm-downloads-src]: https://img.shields.io/npm/dt/@nuxtjs/google-fonts.svg
[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/google-fonts

[github-actions-ci-src]: https://github.com/nuxt-community/google-fonts-module/workflows/ci/badge.svg
[github-actions-ci-href]: https://github.com/nuxt-community/google-fonts-module/actions?query=workflow%3Aci

[codecov-src]: https://img.shields.io/codecov/c/github/nuxt-community/google-fonts-module.svg
[codecov-href]: https://codecov.io/gh/nuxt-community/google-fonts-module

[license-src]: https://img.shields.io/npm/l/@nuxtjs/google-fonts.svg
[license-href]: https://npmjs.com/package/@nuxtjs/google-fonts
npm package: @sondh0127/ts-starter
Description: [![NPM version](https://img.shields.io/npm/v/[name]?color=a1b858&label=)](https://www.npmjs.com/package/[name])
Author: Son Hong Do
Latest version: 0.0.10

# [name]

[![NPM version](https://img.shields.io/npm/v/[name]?color=a1b858&label=)](https://www.npmjs.com/package/[name])



## License

[MIT](./LICENSE) License © 2021 [Son Hong Do](https://github.com/sondh0127)