open-index/open-npm huggingface dataset:
npm package: @marchintosh94/create-node-ts
Description: NodeJS TypeScript projects generator by @marchintosh
Author: marchintosh94
Latest version: 1.0.2

# create-node-ts

`create-node-ts` is a project generator for creating Node.js applications with TypeScript. It sets up a new project with a basic structure and some default configuration, including Jest for testing, Prettier for code formatting, and Husky for Git hooks.

## Installation

You don't need to install `create-node-ts` to use it. Instead, you can use `npx`:

```bash
npx @marchintosh94/create-node-ts
```

This will run create-node-ts and start the process of setting up a new project.

## Usage
When you run `create-node-ts`, it will prompt you for some information about your project:

- `Project name`: The name of your new project.

After you've provided this information, `create-node-ts` will create a new directory (if you choose to create it) with your project name, set up the project structure, and install the dependencies.

The generated project includes the following files and directories:

- `src`: This directory is where your TypeScript source code goes.
- `package.json`: This file contains the metadata about your project and its dependencies.
- `tsconfig.json`: This file is the TypeScript compiler configuration.
- `jest.config.ts`: This file is the Jest configuration.
- `.gitignore`: This file tells Git which files to ignore.
- `.prettierrc` and `.prettierignore`: These files are the Prettier configuration.
In addition, `create-node-ts` initializes a Git repository in your project directory and sets up Husky to run tests and linting before each commit.

## Contributing
Contributions to `create-node-ts` are welcome! Please open an issue or submit a pull request on GitHub.

## License
`create-node-ts` is licensed under the MIT license. See the LICENSE file for more information.
npm package: @marchintosh94/number-format
Description: Format numbers and number string
Author: marchintosh
Latest version: 0.1.6

# Introduction

The easy way to format number in your Typescript and Javascript applications.

With this library you can configure a centralised number formatter for your application as well as configure at runtime custom number format or currency.

{% content-ref url="https://app.gitbook.com/s/ngFcKbLvzwKsAQzQGiQQ/" %}
[Number format](https://app.gitbook.com/s/ngFcKbLvzwKsAQzQGiQQ/)
{% endcontent-ref %}

### Features

* create global app number formatter: you can set default number of decimals to be dysplayed, the delimiter character for decimal and thousands separators and configure global currency symbol and code
* format number as currencies
* format number with decimal and thousands separator
* create custom one shot  number format: when you format a number you can specify custom decimal to be displayed
* create custom one shot  currency number format: when you format a number as currency you can specify custom decimal to be displayed and custum currency symbol
npm package: @marcho4917/randomid-generator
Description: This application allows you to generate a random ID from an available sequence of characters.  The length of the random ID depends on the length that the user gives.
Author: marcho4917
Latest version: 1.0.1

# General Info

This application allows you to generate a random ID from an available sequence of characters. 
The length of the random ID depends on the length that the user gives.

# Setup

To run this package, install it locally using npm:

```
$ npm install @marcho4917/randomid-generator

```
npm package: @marchworks/colortone
Description: Color toner
Author: MarchWorks
Latest version: 1.0.7

 <div align="center">
  <h1>Colortone</h1>
</div>

## Getting Started

```
npm install @marchworks/colortone
```
Or if you are using yarn
```
yarn add @marchworks/colortone
```

### Usage
```
import colortone from 'colortone';

// colortone(color, ratio) --> hex || null
const darkerBlueTone = colortone("#0000ff", -0.05)
const lighterBlueTone = colortone("#0000ff", 0.05)
```

### Args
The color arg can be in any of the following formats
```
"#rrggbb"
"#rgb"
[r, g, b] --> the r, g and b values should be of type number
{r, g, b} --> the r, g and b values should be of type number
```
the ratio can not be outside [-1, 1]
npm package: @marchyang/create-node-app
Description: create node project
Latest version: 1.3.3

## create-node-app
Create a node application in a folder

### Instructions
npx @marchyang/create-node-app

use laster versoin ,use ```npx --ignore-existing @marchyang/create-node-app@latest```

### test
1. develop: ```npm run dev``` or ```npm run dev2```
2. debug: ```npm run dev:debug```
3. pack：```npm run build:prod```
4. lib: ``` npm run build:js```
npm package: @marchyang/init-eslint
Description: Initialize eslint in the project(在项目里安装eslint) #### use `npx @marchyang/init-eslint`
Latest version: 1.2.3
Deprecated: deprecate

### Init Eslint 
Initialize eslint in the project(在项目里安装eslint)
#### use
`npx @marchyang/init-eslint`


: ts-node 需要`package.json type:module` 但是执行打包的代码不需要，所以在发布的时候去掉`package.json type:module`，所以应该先保存代码再发布。
npm package: @marchyang/init-eslint-jest
Description: Initialize eslint and jestin the project(在项目里安装eslint和jest) #### use `npx @marchyang/init-eslint-jest`
Latest version: 1.2.9

### Init Eslint 
Initialize eslint and jestin the project(在项目里安装eslint和jest)
#### use
`npx @marchyang/init-eslint-jest`
npm package: @marchyang/init-sdk-project
Description: create project like sdk(创建像sdk一样的项目) #### use `npx @marchyang/init-sdk-project`（The first step is to fill in the information about NPM init）
Latest version: 1.0.7

### Init Sdk Project
create project like sdk(创建像sdk一样的项目)
#### use
`npx @marchyang/init-sdk-project`（The first step is to fill in the information about NPM init）
npm package: @marchyang/npm-run-path
Description: Get your PATH prepended with locally installed binaries
Author: @marchyang
Latest version: 5.0.1

# npm-run-path

> Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries

In [npm run scripts](https://docs.npmjs.com/cli/run-script) you can execute locally installed binaries by name. This enables the same outside npm.

## Install

```sh
npm install npm-run-path
```

## Usage

```js
import childProcess from 'child_process';
import {npmRunPath, npmRunPathEnv} from 'npm-run-path';

console.log(process.env.PATH);
//=> '/usr/local/bin'

console.log(npmRunPath());
//=> '/Users/sindresorhus/dev/foo/node_modules/.bin:/Users/sindresorhus/dev/node_modules/.bin:/Users/sindresorhus/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/bin'

// `foo` is a locally installed binary
childProcess.execFileSync('foo', {
	env: npmRunPathEnv()
});
```

## API

### npmRunPath(options?)

Returns the augmented PATH string.

#### options

Type: `object`

##### cwd

Type: `string`\
Default: `process.cwd()`

The working directory.

##### path

Type: `string`\
Default: [`PATH`](https://github.com/sindresorhus/path-key)

The PATH to be appended.

Set it to an empty string to exclude the default PATH.

##### execPath

Type: `string`\
Default: `process.execPath`

The path to the current Node.js executable. Its directory is pushed to the front of PATH.

This can be either an absolute path or a path relative to the [`cwd` option](#cwd).

### npmRunPathEnv(options?)

Returns the augmented [`process.env`](https://nodejs.org/api/process.html#process_process_env) object.

#### options

Type: `object`

##### cwd

Type: `string`\
Default: `process.cwd()`

The working directory.

##### env

Type: `object`

Accepts an object of environment variables, like `process.env`, and modifies the PATH using the correct [PATH key](https://github.com/sindresorhus/path-key). Use this if you're modifying the PATH for use in the `child_process` options.

##### execPath

Type: `string`\
Default: `process.execPath`

The path to the Node.js executable to use in child processes if that is different from the current one. Its directory is pushed to the front of PATH.

This can be either an absolute path or a path relative to the [`cwd` option](#cwd).

## Related

- [npm-run-path-cli](https://github.com/sindresorhus/npm-run-path-cli) - CLI for this module
- [execa](https://github.com/sindresorhus/execa) - Execute a locally installed binary

---

<div align="center">
	<b>
		<a href="https://tidelift.com/subscription/pkg/npm-npm-run-path?utm_source=npm-npm-run-path&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
	</b>
	<br>
	<sub>
		Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
	</sub>
</div>
npm package: @marchyang/pack
Description: A project that supports local development and bundling features for web and node environments, with TypeScript support. It enables efficient development and deployment of web and node applications using modern development practices.
Author: marchyang
Latest version: 1.1.1

## Introduction:

Supports local development and bundling features for both web and node environments, with typescript support.

## Installation:

`npm i @marchyang/pack`

## Usage:

1.  Configure commands in package.json, assign a value to "mode" to specify the startup model. append -d after debugger @marchyang/pack.

    ```
      "scripts": {
            "dev:web": "pack2 pack2 --mode=dev:web",
            "dev:web:debug": "pack2 pack2 --mode=dev:web -d" ,
      }
    ```

2.  `npm run dev:web`

## Default Configuration for Each Mode

| Mode       | Entry       |
| ---------- | ----------- |
| dev:web    | src/app.tsx |
| build:spa  | src/app.tsx |
| dev:node   | src/app.ts  |
| build:node | src/app.ts  |

3. 在项目根目录增加 pack.config.cjs 可以覆盖默认配置，同时可以设置 config 来指定配置文件路径，同时能覆盖默认配置

   ```
   module.exports = {
      dev_node: {
        entry: './src/app.ts',
      },
      build_node: {
        entry: './src/app.ts',
      },
   };
   ```

## Support

1. Support `dotenv` and differentiate between environments, using ` --DOT_ENV=test` will load the `. env. test` file

## Notes:

1. The entry file names are case-sensitive, otherwise hot reloading will not work in development mode.(文件名字大小写影响 web-dev-server 热更新)
2. 本地开发时(作为 link 包)，dev:node 时要在项目内增加 tsconfig.json，使用的是项目内的 tsconfig.json
npm package: @marchyang/squoosh-lint-staged
Description: > designed for lint-staged usage with sensible defaults，but CLI calls are also supported.
Latest version: 1.1.2

## squoosh-lint-staged
> designed for lint-staged usage with sensible defaults，but CLI calls are also supported.

### introduce
Automatically optimize images on submission

## Installation
```
npm i --save-dev squoosh-lint-staged
```

## Usage
1. ```squoosh-lint-staged 1.png 2.png```, Replacement of original position
2. ```squoosh-lint-staged -T ./images ```, Replace the original location in the folder
3. ```squoosh-lint-staged -T ./images -O ./newImages/```, Output to new directory
4. ```squoosh-lint-staged -O ./newImages/ 1.png 2.png```, Output to new directory
5. use width lint-staged
```
"lint-staged": {
    "*.{png,jpg,webp}": ["squoosh-lint-staged", "git add"]
}
```
> Other formats are not supported at the moment（gif）,Please change JPEG to jpg 

## Other
> use node v10.5.0 or above。
npm package: @marchyang/web-template
Description: web pack template
Author: @marchyang
Latest version: 1.0.5

# web template
Live broadcast of web mobile terminal


### 启动：
1. npm i 
2. npm run dev

### 作为npm包使用
1. npm i 
2. 增加project.config.ts
3. 增加.browserslistrc
4. 入口默认是src/index.tsx
npm package: @marcielmj/ui-select
Author: http://github.com/angular-ui/ui-select/graphs/contributors
Latest version: 0.19.9

# AngularJS ui-select [![Build Status](https://travis-ci.org/angular-ui/ui-select.svg?branch=master)](https://travis-ci.org/angular-ui/ui-select) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/angular-ui/ui-select?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)


AngularJS-native version of [Select2](http://ivaynberg.github.io/select2/) and [Selectize](http://brianreavis.github.io/selectize.js/). [http://angular-ui.github.io/ui-select/](http://angular-ui.github.io/ui-select/)

[Getting Started](https://github.com/angular-ui/ui-select/wiki/Getting-Started) 

- [Examples](http://angular-ui.github.io/ui-select/#examples)
- [Examples Source](./docs/examples)
- [Documentation](https://github.com/angular-ui/ui-select/wiki)

## Latest Changes

- Check [CHANGELOG.md](/CHANGELOG.md)

## Features

- Search, Select, Multi-select and Tagging
- Multiple Themes: Bootstrap, Select2 and Selectize
- Keyboard support
- No jQuery required (except for old browsers)
- Small code base: 4.57KB min/gzipped vs 20KB for select2

For the roadmap, check [issue #3](https://github.com/angular-ui/ui-select/issues/3) and the [Wiki page](https://github.com/angular-ui/ui-select/wiki/Roadmap).

## Installation Methods

### npm
```
$ npm install ui-select
```
### bower
```
$ bower install angular-ui-select
```

## Development

### Prepare your environment
* Install [Node.js](http://nodejs.org/) and NPM (should come with)
* Install global dev dependencies: `npm install -g gulp`
* Install local dev dependencies: `npm install` in repository directory

### Development Commands

* `gulp` to jshint, build and test
* `gulp build` to jshint and build
* `gulp test` for one-time test with karma (also build and jshint)
* `gulp watch` to watch src files to jshint, build and test when changed
* `gulp docs` build docs and examples

## Contributing

- Check [CONTRIBUTING.md](/CONTRIBUTING.md)
- Run the tests
- Try the [examples](./docs/examples)

When issuing a pull request, please exclude changes from the "dist" folder to avoid merge conflicts.