open-index/open-npm huggingface dataset:
npm package: @sunshine-request/cdp-frontend
Description: Front-end tooling library for React components for CDP instance deployments.
Author: To Huynh, Brian Ledbetter, Hawk Ticehurst, Nic Weber, Jackson Maxfield Brown
Latest version: 3.3.3

# cdp-frontend

[![Build Status](https://github.com/CouncilDataProject/cdp-frontend/workflows/Build%20Main/badge.svg)](https://github.com/CouncilDataProject/cdp-frontend/actions)
[![Documentation](https://github.com/CouncilDataProject/cdp-frontend/workflows/Documentation/badge.svg)](https://CouncilDataProject.github.io/cdp-frontend)
[![DOI](https://joss.theoj.org/papers/10.21105/joss.03904/status.svg)](https://doi.org/10.21105/joss.03904)

The Council Data Project UI component library and exportable web app used by CDP instances.

---

## Council Data Project

Council Data Project is an open-source project dedicated to providing journalists, activists, researchers, and all members of each community we serve with the tools they need to stay informed and hold their Council Members accountable.

For more information about Council Data Project, please visit [our website](https://councildataproject.org/).

## About

`cdp-frontend` houses the React + TypeScript-based component library and exportable web app for all CDP instance web applications.

The central goal is to create a web application and all neccessary components that are highly reusable for all CDP instances to use with little customization.

## Documentation

For full component documentation please visit [councildataproject.org/cdp-frontend](https://councildataproject.org/cdp-frontend).

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for information related to development of this repository.

### Styling

When developing new components, please first see the [recommendations from our UX team](https://docs.google.com/presentation/d/15rkic20QV6GU0_nL-8zHIgcw8-o1bCQIiYMsY2j6qFg/edit?usp=sharing) for guidance. Additionally, we utilize Mozilla's [Protocol](https://github.com/mozilla/protocol/) for styling each component, please try to use `protocol` wherever possible.

## Citation

If you have found CDP software, data, or ideas useful in your own work, please consider citing us:

Brown et al., (2021). Council Data Project: Software for Municipal Data Collection, Analysis, and Publication. Journal of Open Source Software, 6(68), 3904, https://doi.org/10.21105/joss.03904

```bibtex
@article{Brown2021,
  doi = {10.21105/joss.03904},
  url = {https://doi.org/10.21105/joss.03904},
  year = {2021},
  publisher = {The Open Journal},
  volume = {6},
  number = {68},
  pages = {3904},
  author = {Jackson Maxfield Brown and To Huynh and Isaac Na and Brian Ledbetter and Hawk Ticehurst and Sarah Liu and Emily Gilles and Katlyn M. f. Greene and Sung Cho and Shak Ragoler and Nicholas Weber},
  title = {{Council Data Project: Software for Municipal Data Collection, Analysis, and Publication}},
  journal = {Journal of Open Source Software}
}
```

## License

[MIT](./LICENSE)
npm package: @sunshine_bit/capture
Description: capture with width and height.
Author: sunshine
Latest version: 1.0.5

# sunshine_bit@capture

> 截取指定 url 的屏幕信息,可以指定屏幕的宽和高.

## 安装

```js
npm i @sunshine_bit/capture
````

## 参数

- `options` [object]
  - url <string> default: `'https://github.com/l4503071'`(需要使用`encodeURIComponent`转义)
  - width <number> default: `375`,
  - height <number> default: `667`,
  - deviceScaleFactor <number> default: `2`,
  - fileName <string> default: `'capture.png'`,
  - encoding <string> default: 'binary',
    - 'base64': base64[string]
    - 'binary': 二进制文件[buffer]

> TODO: 其他参数覆盖,参考 (`./devices.js`)

## 事例

```js
const capture = require('@sunshine_bit/capture');
capture.capture({
  encoding: 'base64',
}).then((data)=>{
  console.log(data)
});
```