open-index/open-npm huggingface dataset:
npm package: @lifo-sh/core
Description: Linux-like OS engine for JavaScript -- kernel, shell, VFS, and 60+ commands
Author: Sanket Sahu
Latest version: 0.5.5

# @lifo-sh/core

Core engine for [Lifo](https://github.com/lifo-sh/lifo) -- a Linux-like OS that runs natively in JavaScript. Provides the kernel, virtual filesystem, shell, and 60+ commands.

Works in both browser and Node.js environments.

## Install

```bash
npm install @lifo-sh/core
```

## Quick Start

### Headless / Programmatic

```typescript
import { Sandbox } from '@lifo-sh/core';

const sandbox = await Sandbox.create();

const result = await sandbox.commands.run('echo hello world');
console.log(result.stdout); // "hello world\n"

await sandbox.fs.writeFile('/tmp/greeting.txt', 'Hi there');
const content = await sandbox.fs.readFile('/tmp/greeting.txt');
console.log(content); // "Hi there"
```

### Browser with Terminal UI

```typescript
import { Sandbox } from '@lifo-sh/core';

// Requires @lifo-sh/ui as an optional peer dependency
const sandbox = await Sandbox.create({
  terminal: '#terminal-container',
  persist: true,
});
```

## What's Included

- **Kernel** -- virtual filesystem (VFS), virtual `/proc` and `/dev` providers, IndexedDB persistence
- **Shell** -- bash-like interpreter with pipes, redirects, globs, variables, job control, tab completion, history
- **60+ commands** -- `ls`, `grep`, `awk`, `sed`, `curl`, `node`, `tar`, `find`, and more
- **Sandbox API** -- high-level `commands.run()` and `fs.*` for programmatic use
- **Node.js compat layer** -- run JS files with `node script.js` using shimmed `fs`, `path`, `http`, etc.

## Packages

| Package | Description |
|---|---|
| **@lifo-sh/core** | Kernel, shell, commands, sandbox API |
| [@lifo-sh/ui](https://www.npmjs.com/package/@lifo-sh/ui) | Terminal UI (xterm.js wrapper) |
| [lifo-sh](https://www.npmjs.com/package/lifo-sh) | CLI -- run Lifo in your terminal |

## Links

- [GitHub](https://github.com/lifo-sh/lifo)
- [Issues](https://github.com/lifo-sh/lifo/issues)

## License

MIT
npm package: @lifo-sh/ui
Description: Terminal UI for Lifo -- xterm.js wrapper with WebGL rendering
Author: Sanket Sahu
Latest version: 0.5.0

# @lifo-sh/ui

Terminal UI package for [Lifo](https://github.com/lifo-sh/lifo) -- a Linux-like OS that runs natively in the browser. Wraps xterm.js with WebGL rendering and auto-fit.

## Install

```bash
npm install @lifo-sh/ui @lifo-sh/core
```

## Usage

Typically used via `@lifo-sh/core`'s Sandbox API:

```typescript
import { Sandbox } from '@lifo-sh/core';

const sandbox = await Sandbox.create({
  terminal: '#terminal-container',
});
```

`@lifo-sh/core` lazy-loads `@lifo-sh/ui` when a DOM element is passed as the `terminal` option.

### Standalone

```typescript
import { Terminal } from '@lifo-sh/ui';

const terminal = new Terminal(document.getElementById('terminal'));
terminal.write('Hello from Lifo!\r\n');
```

## What's Included

- xterm.js terminal emulator
- WebGL renderer for GPU-accelerated rendering
- Auto-fit addon for responsive sizing
- Implements the `ITerminal` interface from `@lifo-sh/core`

## Packages

| Package | Description |
|---|---|
| [@lifo-sh/core](https://www.npmjs.com/package/@lifo-sh/core) | Kernel, shell, commands, sandbox API |
| **@lifo-sh/ui** | Terminal UI (xterm.js wrapper) |
| [lifo-sh](https://www.npmjs.com/package/lifo-sh) | CLI -- run Lifo in your terminal |

## Links

- [GitHub](https://github.com/lifo-sh/lifo)
- [Issues](https://github.com/lifo-sh/lifo/issues)

## License

MIT
npm package: @lifters-international/node-foodapi
Description: Node.js wrapper for the Lifters Food API
Author: Chidozie Nnaji
Latest version: 2.1.0

# Getting Started

> If you have not done so, please create an api account at the following: https://business.lifters.app/food-api


### Install the Node js Lifters FoodApi wrapper
```JS
  npm i @lifters-international/node-foodapi
```

### Once imported you can start using the wrapper like so
```JS
  const { FoodApi } = require("@lifters-international/node-foodapi");
  
  const foodApi = new FoodApi("{FOOD_API_TOKEN}");
```

### Functions & Uses:
```JS
  await foodApi.verifyApiKey( throwError: boolean = false ) // Checks if the api_key provided is valid. And throws error if it is not.
  
  await foodApi.getAllFood( limit?: number ) // Returns all food from Lifters Food Database, if a limit is given that limit on Food is returned.
  
  await foodApi.searchFoodByName( name: string, limit?: number ) // Returns list of food in database with similar name.
  
  await foodApi.getFoodByCategory( categories: FoodCategories, limit?: number ) // Returns list of food in database that meets one or all category.
  
  await foodApi.getFoodById( id : string ) // Returns food with the given id.
```

### Important Types:

> FoodCategories:

```TYPESCRIPT
  type FoodCategories = {
    calories?: number;
    totalFat?: number;
    saturatedFat?: number;
    transFat?: number;
    cholesterol?: number;
    sodium?: number;
    totalCarbohydrate?: number;
    dietaryFiber?: number;
    totalSugars?: number;
    addedSugars?: number;
    protein?: number;
    vitaminD?: number;
    calcium?: number;
    iron?: number;
    potassium?: number;
  }
```


> Food:

```TYPESCRIPT
export type Food = {
    id: string;

    name: string;

    calories: number;

    servingSize: NutritionFactsJson;

    nutritionFacts: NutritionFacts;

    adminCreated: boolean;
}
```