open-index/open-npm huggingface dataset:
npm package: @foodism/http
Description: ts版本axios请求库
Author: yangfei
Latest version: 1.1.5

# ts版本http 请求库

## 安装
```bash
  npm install @foodism/http 
```

## 在项目中使用
```typescript
import Service from "@foodism/http";

class Http extends Service {
  constructor(props?: any) {
  super();
  this.init();
}
init() {
  this.baseURL = "https://jsonplaceholder.typicode.com/";
  this.timeout = 1000;
  this.withCredentials = false;
  this.headers = {
    "Content-Type": "application/json",
  };
  super.setup();
}
}

const http = new Http();

interface Post {
  id: number;
  title: string;
}

async function getUsers() {
  // post 请求
  const data = await http.request<Post[]>({
    url: "/posts",
    method: "post",
    data: {
      userId: 10001,
      id: 100,
      title: "yagn-=titi",
      body: "body-yang",
    },
    headers: {
      "Content-Type": "application/json",
    },
  });
  // get 请求
  // 1. 把get请求的参数 拼接在url后面
  const data2 = await http.request({
    url: "/post?name=xx",
  });

  // 2. 把get请求的参数 放在data里面，自动拼接在url后面
  const data3 = await http.request({
    url: "/post",
    data: {
      name: "xx"
    }  
  });

  console.log("最终的值得");
  console.log(data);
}

getUsers();
```
npm package: @foodji/cz-foodji-changelog
Description: Commitizen adapter following the conventional-changelog format.
Author: foodji
Latest version: 0.0.2

# cz-conventional-changelog

Status:
[![npm version](https://img.shields.io/npm/v/cz-conventional-changelog.svg?style=flat-square)](https://www.npmjs.org/package/cz-conventional-changelog)
[![npm downloads](https://img.shields.io/npm/dm/cz-conventional-changelog.svg?style=flat-square)](http://npm-stat.com/charts.html?package=cz-conventional-changelog&from=2015-08-01)
[![Build Status](https://img.shields.io/travis/commitizen/cz-conventional-changelog.svg?style=flat-square)](https://travis-ci.org/commitizen/cz-conventional-changelog)

Part of the [commitizen](https://github.com/commitizen/cz-cli) family. Prompts for [conventional changelog](https://github.com/conventional-changelog/conventional-changelog) standard.

## Configuration

### package.json

Like commitizen, you specify the configuration of cz-conventional-changelog through the package.json's `config.commitizen` key.

```json5
{
// ...  default values
    "config": {
        "commitizen": {      
            "path": "./node_modules/cz-conventional-changelog",
            "maxHeaderWidth": 100,
            "maxLineWidth": 100,
            "defaultType": "",
            "defaultScope": "",        
            "defaultSubject": "",
            "defaultBody": "",
            "defaultIssues": ""
        }
    }
// ...    
}
``` 
### Environment variables

The following environment varibles can be used to override any default configuration or package.json based configuration.

* CZ_TYPE = defaultType 
* CZ_SCOPE = defaultScope
* CZ_SUBJECT = defaultSubject
* CZ_BODY = defaultBody
* CZ_MAX_HEADER_WIDTH = maxHeaderWidth
* CZ_MAX_LINE_WIDTH = maxLineWidth

### Commitlint

If using the [commitlint](https://github.com/conventional-changelog/commitlint) js library, the "maxHeaderWidth" configuration property will default to the configuration of the "header-max-length" rule instead of the hard coded value of 100.  This can be ovewritten by setting the 'maxHeaderWidth' configuration in package.json or the CZ_MAX_HEADER_WIDTH environment variable.
npm package: @foodmarketmaker/mapag
Description: Angular library for interactive maps with advanced geospatial features
Author: Food Market Maker
Latest version: 0.0.49

# @foodmarketmaker/mapag

Angular library for interactive maps with advanced geospatial features.

## Installation

```bash
npm install @foodmarketmaker/mapag
```

## Usage

```typescript
import { MapagModule } from '@foodmarketmaker/mapag';

@NgModule({
  imports: [MapagModule],
  // ...
})
export class AppModule { }
```

## Features

- Interactive maps with MapLibre GL
- Multiple basemap styles  
- Drawing tools (rectangles, polygons)
- Area selection components
- Geospatial data layers
- Customizable styling

## Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

```bash
ng generate component component-name
```

For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:

```bash
ng generate --help
```

## Building

To build the library, run:

```bash
ng build mapag
```

This command will compile your project, and the build artifacts will be placed in the `dist/` directory.

### Publishing the Library

Once the project is built, you can publish your library by following these steps:

1. Navigate to the `dist` directory:
   ```bash
   cd dist/mapag
   ```

2. Run the `npm publish` command to publish your library to the npm registry:
   ```bash
   npm publish
   ```

## Running unit tests

To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:

```bash
ng test
```

## Running end-to-end tests

For end-to-end (e2e) testing, run:

```bash
ng e2e
```

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

## Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.