open-index/open-npm huggingface dataset:
npm package: @millionfor/g
Description: Provide a standard api for cross envs global access.
Latest version: 1.0.2

## @millionfor/g

Provide a unify api for cross global access.

## Usage

```sh
yarn add @millionfor/g
```

```js
import g from '@millionfor/g'

console.log(g === window) // true for browser
console.log(g === global) // true for nodejs
```

## License

MIT
npm package: @millionfor/global
Description: Provide a standard api for cross envs global access.
Author: QuanQuan
Latest version: 1.0.0

# @millionfor/global

Provide a standard api for cross envs global access.

## Installation

```bash
$ npm i @millionfor/global
```

## Usage

```js

import G from '@millionfor/global'

console.log(G === window) // true for browser
console.log(G === global) // true for nodejs

```

## APIs

```ts
declare const global: any;

export default global;

```

## License

MIT
npm package: @millionfor/io
Description: generic io toolchain both for browser and node
Author: QuanQuan
Latest version: 2.0.3

# @millionfor/io

Generic IO toolchain for both browser and Node.js environments.

## Features

- 🚀 **Multi-environment support**: Works in ES5, ES6, and TypeScript environments
- 🌐 **Cross-platform**: Browser and Node.js compatibility
- 📡 **HTTP client**: Built on top of axios
- 🔄 **JSONP support**: Cross-origin requests in browsers, HTTP fallback in Node.js
- 📦 **Multiple formats**: ES modules, CommonJS, UMD, IIFE, and ES5 compatible builds

## Installation

```bash
npm install @millionfor/io
```

## Usage

### ES6/ES2015+ Environment

```javascript
// ES modules
import io from '@millionfor/io';

// CommonJS
const io = require('@millionfor/io');

const instance = io.create();
```

### ES5 Environment (Legacy Browsers)

```javascript
// Use ES5 compatible build
import io from '@millionfor/io/es5';

// Or in CommonJS
const io = require('@millionfor/io/es5');

const instance = io.create();
```

### UMD (Universal Module Definition)

```javascript
// AMD
define(['@millionfor/io/umd'], function(io) {
  const instance = io.create();
});

// Global variable (browser)
const instance = Io.create();
```

### IIFE (Immediately Invoked Function Expression)

```html
<script src="@millionfor/io/iife"></script>
<script>
  const instance = Io.create();
</script>
```

## API Examples

### HTTP Requests

```javascript
const instance = io.create({
  baseURL: 'https://api.example.com',
  timeout: 5000
});

// GET request
instance.get('/users')
  .then(data => console.log(data))
  .catch(err => console.error(err));

// POST request
instance.post('/users', { name: 'John', email: 'john@example.com' })
  .then(data => console.log(data))
  .catch(err => console.error(err));
```

### JSONP (Browser) / HTTP (Node.js)

```javascript
// In browser: uses JSONP
// In Node.js: uses HTTP request
instance.jsonp('https://api.example.com/data', {
  current: 1,
  pageSize: 100
})
.then(data => console.log(data))
.catch(err => console.error(err));
```

### Configuration

```javascript
const instance = io.create({
  baseURL: 'https://api.example.com',
  timeout: 10000,
  headers: {
    'Authorization': 'Bearer token'
  },
  resolveURL: (url) => `/api/v1${url}`,
  cbSuccess: (data) => data.code === 0
});
```

## Build Outputs

The package provides multiple build formats:

- **`io.es.js`** - ES modules (ES6+)
- **`io.cjs.js`** - CommonJS (Node.js)
- **`io.umd.js`** - UMD (Universal)
- **`io.iife.js`** - IIFE (Browser global)
- **`io.es5.js`** - ES5 compatible (Legacy browsers)

## Browser Support

- **Modern browsers**: Chrome 50+, Firefox 50+, Safari 10+, Edge 12+
- **Legacy browsers**: IE 9+, Chrome 30+, Firefox 30+, Safari 8+
- **Mobile**: Android 4.4+, iOS 8+

## Node.js Support

- **Node.js**: 8.0.0+

## Development

```bash
# Install dependencies
npm install

# Build all formats
npm run build

# Build ES5 only
npm run build:es5

# Build modern formats only
npm run build:modern

# Type checking
npm run type-check

# Clean build directory
npm run clean
```

## License

MIT License
npm package: @millionfor/logger
Description: A light logger extends the builtin console module with some log enhances
Author: Allex Wang
Latest version: 2.0.4

# @millionfor/logger

A light logger extends the builtin console module with some log enhance.

## Installation

```bash
$ npm i @millionfor/logger
```

## Usage

```js
import { getLogger } from '@millionfor/logger'

let logger = getLogger()

logger.setLevel('debug') // error, warn, info, log, debug, silent

logger.log('Start to logging... (logLevel: debug)')
logger.debug('I\'m just a debug info, you can skip it.')
logger.log('JSON', { foo: 1, arr: [1, 2, 3] })
logger.info('Hi, i\'m a ammmm info.')
logger.warn('Warning, (pay) attention please.')
logger.error('Fatal, sorry, some thing fails.')

console.log('\n----------------- create a new logger instance -----------------\n')

logger = getLogger({
  timeStamp: true,
  logLevel: 'info'
})

logger.log('Start to logging... (logLevel: info)')
logger.debug('I\'m just a debug info, you can skip it.')
logger.info('Hi, i\'m a ammmm info.')
logger.warn('Waring, (pay) attention please.')
logger.error('Fatal, sorry, some thing fails.')
```

## APIs

default options:

```js
const defaultOptions: LoggerOptions = {
  colour: true,
  timeStamp: false,
  prefix: true,
  logLevel: 'info'
}
```

```ts
export declare type LogLevel = 'debug' | 'log' | 'info' | 'warn' | 'error' | 'silent';
interface IBaseLogger {
    log(...args: any[]): void;
    debug(...args: any[]): void;
    info(...args: any[]): void;
    warn(...args: any[]): void;
    error(...args: any[]): void;
}
export interface ILogger extends IBaseLogger {
    setLevel(level: LogLevel): void;
    setProvider(ctor: () => IBaseLogger): void;
}
export interface LoggerOptions {
    colour: boolean;
    timeStamp: boolean;
    prefix: boolean;
    logLevel: LogLevel;
}
export declare const getLogger: (options: Partial<LoggerOptions>) => ILogger;
```

## License

MIT
npm package: @millionfor/str-template
Description: A simple string template engine
Author: QuanQuan
Latest version: 1.0.2

# @millionfor/str-template

A simple string template engine.

## Installation

```bash
$ npm i @millionfor/str-template
```

## Usage

```js
import strTemplate from '@millionfor/str-template'

```

```ts
/**
 * A simple string template engine.
 *
 * @author QuanQuan <millionfor@apache.org>
 * Released under the MIT License.
 */
/**
 * template
 *
 * @param {string} string
 * @param {Array<any>} ...args
 * @return {string}
 */
export default function template(string: string, ...args: any[]): string;
```

## License

MIT
npm package: @millionfor/tbapi
Description: taobao api sdk client typescript nodejs
Author: quanquansy
Latest version: 1.0.0-beta.2

# @millionfor/tbapi

Basic library packaged based on Taobao open platform

## Usage

```sh
yarn add @millionfor/tbapi -D
```

```js

test

```

## License

[MIT](http://opensource.org/licenses/MIT)
npm package: @millo-ai/cli
Description: Millo CLI - Goal Management Command Line Interface
Latest version: 0.3.2

# @millo-ai/cli

Millo CLI - Command Line Interface for Millo Goal Management

## Installation

```bash
npm install -g @millo-ai/cli
```

## Setup

Run the setup wizard to configure your API key:

```bash
millo init
```

Or set your API key directly:

```bash
millo config set api-key gma_your_api_key_here
```

You can also use the `MILLO_API_KEY` environment variable.

## Usage

### Projects

```bash
# List all projects
millo projects list

# Get project details
millo projects get <id>

# Create a new project
millo projects create --name "My Project" --description "Description"

# Update a project
millo projects update <id> --name "New Name" --status in_progress

# Delete a project
millo projects delete <id>
```

### Actions

```bash
# List all actions
millo actions list

# List incomplete actions only
millo actions list --incomplete

# List actions for a specific project
millo actions list --project <project-id>

# Get action details
millo actions get <id>

# Create a new action
millo actions create --title "My Task" --due-date 2024-12-31

# Create an action linked to a project
millo actions create --title "My Task" --project <project-id>

# Update an action
millo actions update <id> --title "Updated Title"

# Mark action as complete
millo actions complete <id>

# Mark action as incomplete
millo actions complete <id> --undo

# Delete an action
millo actions delete <id>
```

### Configuration

```bash
# Show current configuration
millo config

# Set a configuration value
millo config set api-key <key>
millo config set api-url <url>
millo config set default-output json

# Get a configuration value
millo config get api-key

# Reset configuration
millo config reset
```

## Options

| Option | Description |
|--------|-------------|
| `--json` | Output in JSON format |
| `--api-key <key>` | Use specified API key |
| `--help` | Show help message |
| `--version` | Show version number |

## Environment Variables

| Variable | Description |
|----------|-------------|
| `MILLO_API_KEY` | API key for authentication |
| `MILLO_API_URL` | API URL (default: https://app.millo.tech) |

## Configuration File

Configuration is stored in `~/.config/millo/config.json`:

```json
{
  "apiKey": "gma_...",
  "apiUrl": "https://app.millo.tech",
  "defaultOutput": "table"
}
```

## Development

```bash
# Install dependencies
pnpm install

# Run in development mode
pnpm dev <command>

# Build
pnpm build

# Run tests
pnpm test

# Type check
pnpm typecheck

# Lint
pnpm lint
```

## License

MIT