open-index/open-npm huggingface dataset:
npm package: @flat/time
Description: date-agnostic time parsing for node and the browser (forked from time-js package)
Author: Vincent Giersch
Latest version: 0.0.6

@flat/time
==========

[![Build Status](https://img.shields.io/travis/FlatIO/time.svg?style=flat)](https://travis-ci.org/FlatIO/time)


Parses time input with no relation to dates,
with the option to convert to the next immediate corresponding Date.

Built to solve [this problem](http://stackoverflow.com/q/141348/962091). Forked from [zackdever/time](https://github.com/zackdever/time).

```
$ npm install @flat/time
```
```js
var t = Time('2p');
t.hours();             // 2
t.militaryHours();     // 14
t.minutes();           // 0
t.period();            // 'pm'
t.toString();          // '2:00 pm'
t.nextDate();          // Sep 10 2:00 (assuming it is 1 o'clock Sep 10)
t.format('hh:mm AM')   // '02:00 PM'
t.isValid();           // true
Time.isValid('99:12'); // false
// you get the idea, or see below for more ideas
```

Examples
--------
Some example uses can be viewed in examples.html.

Parses strings such as "8:20" into a Date-less Time.

```js
new Time('1')    // 1:00
new Time('13')   // 1:00 pm
new Time('1:23') // 1:23
```

If you fancy it, you can use safely drop the 'new'.

```js
Time('1.23') // 1:23
Time('123')  // 1:23
```

am/pm can optionally be specified.

```js
Time('8:30 pm') // 8:30 pm
Time('3p')      // 3:00 pm
Time('3 A.M.')  // 3:00 am
```

Converts Time into the next corresponding JavaScript Date.

```js
// assume it's 3:15 pm Aug 10
Time('415').nextDate()  // 4:15 pm Aug 10
Time('2').nextDate()    // 2:00 am Aug 11
Time('2 pm').nextDate() // 2:00 pm Aug 11
```

Does validation statically...

```js
Time.isValid('8:00')  // true
Time.isValid('12:60') // false
Time.isValid('13:23') // true
```

... or after construction.

```js
Time('1').isValid()      // true
Time('12.0').isValid()   // false
Time('12:202').isValid() // false
```

There's basic formatting

```js
Time('2:30p').format('hh:mm A'); // '02:30 P'
Time('2:30p').format('HH:mm');   // '14:30'
Time('12 am').format('h: p');    // '12 a'
Time('220 a').format('h: p');    // '2:20 a'
Time('7').format('h: p');        // '7'
```

Accepts numbers too.

```js
Time(1).isValid() // true
```

Military (24-hour) time support

```js
Time('13').format('hh:mm AM');   // '01:00 PM'
Time('2:30p').format('HH:mm');   // '14:30'
Time('14:30').format('h:mm AM'); // '2:30 PM'
Time('0000').format('h:mm AM');  // '12:00 AM'
Time('2400').isValid();          // false (contrary to ISO8601)
```

ISO8601 time component (without seconds) support

```js
Time('12:00 am').toISOString();  // '00:00'
Time('12:00 pm').toISOString();  // '12:00'
Time('11:00 pm').toISOString();  // '23:00'
```

Test
----

```
$ npm test
```
npm package: @flatbiz/device
Description: flatbiz device
Author: tcsk
Latest version: 1.0.3

# @flatbiz/device 库的使用

## 前端接入方式

1. 引入前端库，在 package.json、dependencies 中新增；

```
"@flatbiz/device": "^1.0.2"

执行 npm、yarn等安装
```

## 常规使用

```javascript
import { deviceInfo } from '@flatbiz/device';

console.log('设备基本数据', deviceInfo);
```
npm package: @flatbiz/react
Description: flat biz ui components
Author: tcsk
Latest version: 3.2.12

### 2.3 修改点：

## form

1. form.validateFieldsRequired 返回值含义变更
2. 新增 onReset
3. 新增 getFormModalPickerValue
4. resetValidateFields 更名为 clearValidateMessage
5. textarea 新增输入计数功能
6. 新增 Form.Text 自定义组件，可用于 FormItem 跳转其他页面取值交互
7. Form.Picker 更名为 Form.Modal
8. CustomFormItemComptProps 更名为 FormItemCustomComptProps
9. 新增 var style 控制 form 全局样式
   --v-form-label-color: #2c344f;
   --v-form-label-font-size: 32px;
   --v-form-label-width: 200px;
   --v-form-value-color: #333;
   --v-form-value-font-size: 32px;
   --v-form-placeholder-color: #b8b0b0;
   --v-form-placeholder-font-size: 32px;
   --v-form-item-border: 1px solid var(--v-border-color);

## upload-list

1. upload 更名为 onUpload

## upload

1. upload 更名为 onUpload

## Grid

1. Grid 新增属性 columnHeight，设置网格高度
1. GridItem 属性 span 更名为 xSpan
1. GridItem 新增属性 ySpan

## CollapseItem

1. 删除 customTitle 属性
2. 新增属性 hideArrow

## Selector

1. 实现方式变更，如果有使用，需要修改
2. 新增 mode 属性
3. 新增 gridProps 属性
4. 新增 freedomProps 属性

## ModalConfirm

1. 删除 cancelButtonFill、okButtonFill 属性
2. 新增 okButtonProps、cancelButtonProps

## ModalAlert

1. 新增 buttonProps

## Button

1. 新增 size 属性

######################

### TODO

# 1. Scrollbar 组件 Demo

### 下个版本修改点

## Title

1. Title 组件 字段变更

## List

1. List 组件新增 gap 属性

## Space

1. 新增 block 属性

## UploadList

1. 实现方式重写
2. 新增 attributeMapping 页面要素属性映射（必填项）
3. 新增 onClickFile 方法

################## 2.3.9 Start ##################

1. 新增数字滚动组件 NumberAnimation

################## 2.3.9 End ##################
npm package: @flatbread/config
Description: Flatbread's user config processing
Author: Tony Ketcham
Latest version: 1.0.0-alpha.9

# @flatbread/config 📐

> Provides a typed config helper function, config validation, and auto-config retrieval.

## 💾 Install

Use `pnpm`, `npm`, or `yarn`:

```bash
pnpm i @flatbread/config
```

Valid config filenames:

- `flatbread.config.js`
- `flatbread.config.mjs`
- `flatbread.config.cjs`
- `flatbread.config.ts`
- `flatbread.config.mts`
- `flatbread.config.cts`

## 👩‍🍳 Typical Usage

### defineConfig(config)

Provides assistance to your IDE for building your config

```js
// flatbread.config.js
import defineConfig from '@flatbread/config';

export default defineConfig({
  ...
});
```

## 😳 Advanced Usage

If you're building something custom, piecemealed from these modules, you can make use of schema validation & config auto-loading.

### `async loadConfig(...)`

Pulls the user config from an optionally specified filepath. By default, this will search the current working directory.

#### options

- Type: `{cwd?: string | undefined;}`
- Default: `{}`

Options for loading the config file, defaults to `{}`. Can pass in `cwd` as a path `string` to override the current working directory.

### `validateConfigHasExports(config)`

Validate that the user config has a default export that is an object.

### `validateConfigStructure(config)`

Validate that the user config has `source` and `content` properties.
npm package: @flatbread/core
Description: Flatbread's essential logic
Author: Tony Ketcham
Latest version: 1.0.0-alpha.16

# @flatbread/core 🍶

The internal GraphQL schema generator for Flatbread. This runs the plugins declared in the user's config, pulling in content and transforming it prior to generating the GraphQL schema.

As a general user of Flatbread, you likely want to use the full [Flatbread module](https://www.npmjs.com/package/flatbread)

However, you can utilize this package directly to build your own custom GraphQL server via installing:

```bash
pnpm i @flatbread/core@latest
```
npm package: @flatbread/source-filesystem
Description: Filesystem source for Flatbread
Author: Tony Ketcham
Latest version: 1.0.0-alpha.9

# @flatbread/source-filesystem 🗃

> Transform files into content that can be fetched with GraphQL.

## 💾 Install

Use `pnpm`, `npm`, or `yarn`:

```bash
pnpm i @flatbread/source-filesystem
```

## 👩‍🍳 Usage

Add the source as a property of the default export within your `flatbread.config.js` file:

```js
// flatbread.config.js
import defineConfig from '@flatbread/config';
import transformer from '@flatbread/transformer-markdown';
import filesystem from '@flatbread/source-filesystem';

const transformerConfig = {
  markdown: {
    gfm: true,
    externalLinks: true,
  },
};
export default defineConfig({
  source: filesystem(),
  transformer: transformer(transformerConfig),
  content: [
    {
      path: 'content/posts',
      collection: 'Post',
    },
  ],
});
```

A filesystem source will also require a transformer in order to parse the files into the proper internal schema. The example above is looking for a set of [Markdown](https://en.wikipedia.org/wiki/Markdown) files, so in order to let [Flatbread](https://github.com/FlatbreadLabs/flatbread) understand the content of markdown (.md, .markdown, .mdx) files, you must install [@flatbread/transformer-markdown](https://www.npmjs.com/package/@flatbread/transformer-markdown) as a dependency. Register the transformer which coresponds to your content filetype as the `transformer` property in your `flatbread.config.js`.

### Options

#### content

- Type: [`Content`](https://github.com/FlatbreadLabs/flatbread/blob/main/packages/core/src/types.ts) _required_

An array of content types - each of which will appear in GraphQL.

#### collection

- Type: `string`
- Default: `'FileNode'`

The name for this content type that will appear in GraphQL.

#### path

- Type: `string` _required_

Where to look for files of the current content type.

- you can use `**` or `*` to match all files or folders
- you can capture the file or folder names to store them as data on the resulting nodes `[category]` `[title].md`

#### refs

- Type: `object`

Define fields that will have a reference to another node. The referenced `collection` is expected to exist within an element of the `content` array.

```js
export default defineConfig({
  source: filesystem(),
  transformer: transformer(transformerConfig),
  content: [
    {
      path: 'content/posts',
      collection: 'Post',
      refs: {
        author: 'Author',
      },
    },
    {
      path: 'content/authors',
      collection: 'Author',
    },
  ],
});
```
npm package: @flatbread/transformer-yaml
Description: Convert YAML files to an in-memory JSON model
Author: Tony Ketcham
Latest version: 1.0.0-alpha.8

# @flatbread/transformer-yaml 🐪

> Transform [YAML](https://en.wikipedia.org/wiki/YAML) files into content that can be fetched with GraphQL.

## 💾 Install

Use `pnpm`, `npm`, or `yarn`:

```bash
pnpm i @flatbread/transformer-yaml
```

## 👩‍🍳 Usage

Pair this with a compatible source plugin in your `flatbread.config.js` file:

```js
// flatbread.config.js
import defineConfig from '@flatbread/config';
import transformer from '@flatbread/transformer-markdown';
import filesystem from '@flatbread/source-filesystem';

export default defineConfig({
  source: filesystem(),
  transformer: transformer(),
  content: [
    {
      path: 'content/posts',
      collection: 'Post',
      refs: {
        authors: 'Author',
      },
    },
    {
      path: 'content/authors',
      collection: 'Author',
      refs: {
        friend: 'Author',
      },
    },
  ],
});
```

### Options

This transformer plugin currently does not accept any config options. It supports all valid yaml syntax flavors by default.

Refer to your source plugin's documentation for the relevant `content` Flatbread config option.

If you're using a CMS like NetlifyCMS, you'll want to pair this with the [`source-filesystem`](https://github.com/FlatbreadLabs/flatbread/blob/main/packages/source-filesystem/README.md) plugin.
npm package: @flatbread/utils
Description: Shared utilities for Flatbread packages
Author: Tony Ketcham
Latest version: 1.0.0-alpha.2

# @flatbread/utils 🛠️

> Shared utilities for Flatbread packages

## 💾 Install

```bash
pnpm add @flatbread/utils
```

## 🎯 Overview

This package provides shared utility functions used across the Flatbread ecosystem. It includes package manager detection, command generation, and other common functionality.

## 📦 Package Manager Detection

Automatically detect which package manager is being used in a project:

```ts
import {
  detectPackageManager,
  getInstallCommand,
  generateInstallCommand,
} from '@flatbread/utils';

// Detect package manager configuration
const pkgManager = detectPackageManager();
console.log(pkgManager.installCommand); // "npm install", "pnpm add", "yarn add", etc.

// Get just the install command
const installCmd = getInstallCommand();
console.log(installCmd); // "npm install"

// Generate a complete install command
const fullCommand = generateInstallCommand(['typescript', 'eslint']);
console.log(fullCommand); // "npm install typescript eslint"
```

### Supported Package Managers

The utility automatically detects package managers based on lock files:

- **npm** (`package-lock.json`) → `npm install`
- **pnpm** (`pnpm-lock.yaml`) → `pnpm add`
- **yarn** (`yarn.lock`) → `yarn add`
- **bun** (`bun.lockb`) → `bun add`

### API

#### `detectPackageManager(cwd?: string)`

Returns the full package manager configuration:

```ts
interface PackageManagerConfig {
  runCommand: string; // "npm run", "pnpm", etc.
  installCommand: string; // "npm install", "pnpm add", etc.
  lockFile: string; // "package-lock.json", etc.
}
```

#### `getInstallCommand(cwd?: string)`

Returns just the install command string.

#### `getRunCommand(cwd?: string)`

Returns just the run command string.

#### `generateInstallCommand(packages: string[], cwd?: string)`

Generates a complete install command for the given packages.

## 🤝 Contributing

We welcome contributions! Please see the main [Flatbread contributing guide](../../CONTRIBUTING.md) for details.