An open API service indexing awesome lists of open source software.

https://github.com/bsahd/libcosense

objective cosense rest wrapper
https://github.com/bsahd/libcosense

cosense scrapbox

Last synced: 3 months ago
JSON representation

objective cosense rest wrapper

Awesome Lists containing this project

README

        

# libcosense

objective cosense rest wrapper

[![JSR Version](https://img.shields.io/jsr/v/%40bsahd/libcosense?logo=jsr&color=yellow)](https://jsr.io/@bsahd/libcosense)
[![GitHub contributors](https://img.shields.io/github/contributors-anon/bsahd/libcosense)](https://github.com/bsahd/libcosense/graphs/contributors)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/bsahd/libcosense)](https://github.com/bsahd/libcosense/graphs/commit-activity)
[![GitHub License](https://img.shields.io/github/license/bsahd/libcosense)](https://github.com/bsahd/libcosense/blob/main/LICENSE)
[![GitHub forks](https://img.shields.io/github/forks/bsahd/libcosense)](https://github.com/bsahd/libcosense/forks)
[![GitHub Issues](https://img.shields.io/github/issues/bsahd/libcosense)](https://github.com/bsahd/libcosense/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/bsahd/libcosense)](https://github.com/bsahd/libcosense/pulls)
![GitHub Created At](https://img.shields.io/github/created-at/bsahd/libcosense)

# installation

1. add dependency
- on **Deno**-based project: `deno add jsr:@bsahd/libcosense`
- on **npm**-based project: `npx jsr add @bsahd/libcosense`
2. importing in source-code
```ts
import * as libcosense from "@bsahd/libcosense";
```

# examples

## Get page

```ts
import * as libcosense from "jsr:@bsahd/libcosense";
const pj = libcosense.Project.new("");
pj.getPage("");
```

## Process all pages

```ts
import * as libcosense from "jsr:@bsahd/libcosense";
const pj = libcosense.Project.new("");
for await (const item of pj.pageList()) {
const page = await item.getDetail();
console.log(page);
}
```