open-index/open-npm huggingface dataset:
npm package: @futpib/simple-hosts
Description: Simple functions to manipulate hosts contents
Author: Han Mai
Latest version: 1.2.4

# simple-hosts

Easy way to manipulate the hosts file contents.

Why this?
- simple, lightweight
- synchronous => 
    - less error prone over other library since they open the small file for very long time which may cause file corruption
    - ease of use, don't need to chain with Promise
- support multiple hostname associated with a single IP address
- well tested before release
- transparent source code
- free of use

What's news?
- 1.1.0
    - Improve `set()` function to support new separate entry
- 1.2.0
    - Fix the `set()` function to support modifying existed hostname
- 1.2.1
    - Refactor the source code. Create `SimpleHosts` class supporting input hosts file path
    - Add test cases
    - Update document


This package provides the below synchronous functions

1. Get corresponding IP of a hostname
    ```ts
    getIp(hostname: string): string
    ```
    Returns the corresponding IP that is mapped to the input hostname. If no record is found, it will return an empty string. If there are multiple IPs that are mapped to a same hostname, the first IP will be returned. Multiple IPs for a same hostname is not encouraged because it causes ambiguous

2. Get corresponding hostnames of an IP
    ```ts
    getHosts(ip: string): [string]
    ```
    Returns an array of found hostnames that are mapped to the input IP

3. Create or modify a record in hosts file
    ```ts
    set(ip: string, hostname: string): void
    ```
    If the same record that contains same IP and same hostname has been in the hosts file, no additional writing is performed. If the hostname has been already existed, it will be removed from the map of current IP and then new record will be added.

*To be supported (if there is user requests in the future): remove IP address and/or hostname(s)*
npm package: @futura-dev/knot-design
Description: Knot Design
Author: Futura
Latest version: 1.4.3
Deprecated: no longer supported

# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
   parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json'],
    tsconfigRootDir: __dirname,
   },
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list