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
- Host: GitHub
- URL: https://github.com/bsahd/libcosense
- Owner: bsahd
- License: mit
- Created: 2025-03-12T03:06:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-19T07:27:31.000Z (3 months ago)
- Last Synced: 2025-03-19T08:28:57.903Z (3 months ago)
- Topics: cosense, scrapbox
- Language: TypeScript
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.ja.md
- License: LICENSE
Awesome Lists containing this project
README
# libcosense
objective cosense rest wrapper
[](https://jsr.io/@bsahd/libcosense)
[](https://github.com/bsahd/libcosense/graphs/contributors)
[](https://github.com/bsahd/libcosense/graphs/commit-activity)
[](https://github.com/bsahd/libcosense/blob/main/LICENSE)
[](https://github.com/bsahd/libcosense/forks)
[](https://github.com/bsahd/libcosense/issues)
[](https://github.com/bsahd/libcosense/pulls)
# 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);
}
```