open-index/open-npm huggingface dataset:
npm package: @sarafgaurav/json-schema-to-graphql-types
Description: A utility to convert JSON Schema types into GraphQL types
Latest version: 1.2.0

JSON Schema to GraphQL Types Converter
======================================
[![Greenkeeper badge](https://badges.greenkeeper.io/lifeomic/json-schema-to-graphql-types.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/lifeomic/json-schema-to-graphql-types.svg?branch=master)](https://travis-ci.org/lifeomic/json-schema-to-graphql-types)
[![Coverage Status](https://coveralls.io/repos/github/lifeomic/json-schema-to-graphql-types/badge.svg?branch=master)](https://coveralls.io/github/lifeomic/json-schema-to-graphql-types?branch=master)

This tools will convert a directory of JSON Schemas into set of GraphQL types.
To use it, do the following:

    npm install -g @lifeomic/json-schema-to-graphql-types
    convert-json-schemas-to-graphql-types <some-dir-with-json-schemas>

When that is run, the tool will output a list of GraphQL types that match the
types in the JSON schemas. After generating the types, you'll need to create
Query and Mutation types to complete you schema and then add resolvers as
needed.
npm package: @sarah_mn/use-local-storage-state
Description: A simple React hook to sync state with localStorage or sessionStorage
Author: Sarah Mn
Latest version: 1.0.2

# use-local-storage-state

> 🧠 A lightweight React hook for managing persistent state using `localStorage` or `sessionStorage`.

## [![npm version](https://img.shields.io/npm/v/@sarah_mn/use-local-storage-state.svg?style=flat-square)](https://www.npmjs.com/package/@sarah_mn/use-local-storage-state) [![npm downloads](https://img.shields.io/npm/dm/@sarah_mn/use-local-storage-state.svg?style=flat-square)](https://www.npmjs.com/package/@sarah_mn/use-local-storage-state) [![license](https://img.shields.io/npm/l/@sarah_mn/use-local-storage-state.svg?style=flat-square)](LICENSE)

## Installation

```bash

npm  install  @sarah_mn/use-local-storage-state

# or

yarn  add  @sarah_mn/use-local-storage-state

# or

pnpm  add  @sarah_mn/use-local-storage-state

```

---

## Usage

```tsx
import useLocalStorageState from "use-local-storage-state";

function App() {
  const [name, setName] = useLocalStorageState("name", "Sarah");

  return <input value={name} onChange={(e) => setName(e.target.value)} />;
}
```

---

## API

**useLocalStorageState(key, initialValue, options?)**

- `key` — string key for storage

- `initialValue` — default value

- `options` — `"local" || "session"`

---

## ✨ Features

- ⚡ Simple React hook interface

- 🔒 Syncs state with `localStorage` or `sessionStorage`

- 🧩 TypeScript ready

- 🔁 Works across tabs and reloads

- 🌗 Supports SSR-safe defaults

---

## Contributing

if your pull requests makes documentation changes, please update readme file.

## License

MIT © [Sarah_Mn](https://github.com/Sarah-Mn)
npm package: @sarahdayan/sitemaptree
Description: ```sh npm install @sarahdayan/sitemaptree # or yarn add @sarahdayan/sitemaptree ```
Author: Sarah Dayan
Latest version: 0.1.3

<p align="center">
  <h1 align="center">SitemapTree</h1>
  <h4 align="center">A port of <a href="https://github.com/algolia/frontman/blob/master/lib/frontman/sitemap_tree.rb" target="_blank">Frontman's <code>SitemapTree</code></a> in TypeScript.</h4>

  <p align="center">
    <img src="https://img.shields.io/github/workflow/status/sarahdayan/sitemaptree/CI/master" alt="GitHub Workflow Status" />
    <img src="https://img.shields.io/node/v/@sarahdayan/sitemaptree" alt="Node.js supported versions" />
    <img src="https://img.shields.io/bundlephobia/minzip/@sarahdayan/sitemaptree" alt="npm bundle size" />
    <img src="https://img.shields.io/npm/l/@sarahdayan/sitemaptree" alt="License" />
  </p>
</p>

SitemapTree is a data structure to represent pages from a static site. It lets you retrieve any resource from the tree with constant time complexity.

## Install

```sh
npm install @sarahdayan/sitemaptree
# or
yarn add @sarahdayan/sitemaptree
```

## Usage

```ts
import { SitemapTree, Resource } from '@sarahdayan/sitemaptree'

const tree = new SitemapTree()

tree.add(new Resource('path/to/first.md'))
tree.add(new Resource('path/to/second.md'))

tree.children[0].children[0].children[0].resource.source // "path/to/first.md"

tree.fromUrl('path/to/second').children[0].resource.source // "path/to/second.md"
```

### Windows

Paths are normalized. If you're running this package on Windows, make sure to use `\\` instead of `/` in your paths, or `path.normalize` to ensure that your input paths match the ones in your `Resource` instances.

## API

### `SitemapTree`

Create a tree of resources.

#### `SitemapTree.resource`

> `Resource | null`

The attached resource.

#### `SitemapTree.parent`

> `SitemapTree | null`

The parent of the sitemap tree.

#### `SitemapTree.children`

> `SitemapTree[]`

The children of the sitemap tree.

#### `SitemapTree.url`

> `string | null`

The URL of the sitemap tree.

#### `SitemapTree.urlPart`

> `string | null`

The URL part of the sitemap tree.

#### `SitemapTree.siblings`

> `SitemapTree[]`

The siblings of the sitemap tree, including itself.

#### `SitemapTree.allUrls`

> `Record<string, SitemapTree>`

All URLs in the sitemap tree.

#### `SitemapTree.add(resource)`

> `(resource: Resource): void`

Add a resource to the sitemap tree.

#### `SitemapTree.fromUrl(url)`

> `(url: string): SitemapTree`

Retrieve a sub-tree in a sitemap tree from a URL.

#### `SitemapTree.fromResource(resource)`

> `(resource: Resource): SitemapTree`

Retrieve a sub-tree in a sitemap tree from a resource.

### `Resource`

Create a resource from a file path.