# @fcc-cdc/it-events

> IT Events Crawler of China

Latest version **1.3.0** (published 2023-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fcc-cdc/it-events
pnpm add @fcc-cdc/it-events
yarn add @fcc-cdc/it-events
bun add @fcc-cdc/it-events
```

Provides the command `it-events`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2023-05-04 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 223.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | shiy2008@gmail.com |
| Maintainers | tech_query |
| Keywords | crawler, IT, event, activity, China |

## Links

- npm: https://www.npmjs.com/package/@fcc-cdc/it-events
- Repository: https://github.com/FreeCodeCamp-Chengdu/IT-events
- Homepage: https://fcc-cd.dev/IT-events/
- Issues: https://github.com/FreeCodeCamp-Chengdu/IT-events/issues
- npm.io page: https://npm.io/package/@fcc-cdc/it-events

## Dependencies (10)

- [yaml](https://npm.io/package/yaml.md) ^2.2.2
- [jsdom](https://npm.io/package/jsdom.md) ^21.1.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.1.1
- [file-type](https://npm.io/package/file-type.md) ^16.5.4
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.9
- [web-utility](https://npm.io/package/web-utility.md) ^4.0.0
- [commander-jsx](https://npm.io/package/commander-jsx.md) ^0.6.1
- [string-similarity](https://npm.io/package/string-similarity.md) ^4.0.4
- [urlpattern-polyfill](https://npm.io/package/urlpattern-polyfill.md) ^8.0.2
- [array-unique-proposal](https://npm.io/package/array-unique-proposal.md) ^0.3.4

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.3.0 (latest) — 2023-05-04
- 0.5.0 — 2019-04-24

## README

# 中国 IT 活动日历

核心创意源自 [@too][1] 的[一个想法][2]，核心代码源自 [@TechQuery][3] 的[《NodeJS 网页爬虫一小时实战》课程][4]。

[![NPM Dependency](https://david-dm.org/FreeCodeCamp-Chengdu/IT-events.svg)][5]
[![CI & CD](https://github.com/FreeCodeCamp-Chengdu/IT-events/actions/workflows/main.yml/badge.svg)][6]

[![NPM](https://nodei.co/npm/@fcc-cdc/it-events.png?downloads=true&downloadRank=true&stars=true)][7]

## 基本用法

### 活动列表

#### 命令行

```Shell
npm install @fcc-cdc/it-events -g

# 以间隔 0.5 秒的速度把所有活动下载到桌面的一个文件
it-events list -i 0.5 1> ~/Desktop/it-events.yml
```

#### Node.JS 模块

```JavaScript
import updateEvents, { descendDate } from '@fcc-cdc/it-events';

(async () => {
    const list = [];

    for await (let item of updateEvents(list, 0.5)) list.push(item);

    console.log([...new Set(list)].sort(descendDate));
})();
```

### 议程列表

#### 命令行

```shell
# 议程在首页
it-events agenda https://www.bagevent.com/event/8199059

# 议程在内页
it-events agenda https://www.bagevent.com/event/6840909/p/430761
```

#### Node.js 模块

```javascript
import { BagEventAgenda } from 'it-events';

// 议程在首页
new BagEventAgenda().saveList('https://www.bagevent.com/event/8199059');

// 议程在内页
new BagEventAgenda().saveList(
    'https://www.bagevent.com/event/6840909/p/430761'
);
```

[1]: https://github.com/too
[2]: ./Contributing.md
[3]: https://github.com/TechQuery
[4]: https://fcc-cd.dev/activity/workshop/nodejs-web-crawler/
[5]: https://david-dm.org/FreeCodeCamp-Chengdu/IT-events
[6]: https://github.com/FreeCodeCamp-Chengdu/IT-events/actions/workflows/main.yml
[7]: https://nodei.co/npm/@fcc-cdc/it-events/

---
_Source: https://npm.io/package/@fcc-cdc/it-events · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
