# qiita

> nodejs wrapper for qiita api

Latest version **1.2.0** (published 2014-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install qiita
pnpm add qiita
yarn add qiita
bun add qiita
```

## 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.2.0 |
| Published | 2014-10-06 |
| First published | 2014-07-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Author | sakatam |
| Maintainers | sakatam |
| Keywords | qiita |

## Links

- npm: https://www.npmjs.com/package/qiita
- Repository: https://github.com/sakatam/node-qiita
- Issues: https://github.com/sakatam/node-qiita/issues
- npm.io page: https://npm.io/package/qiita

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.44.0
- [underscore](https://npm.io/package/underscore.md) ^1.7.0

## Recent versions

- 1.2.0 (latest) — 2014-10-06
- 1.1.1 — 2014-10-03
- 1.1.0 — 2014-10-03
- 1.0.0 — 2014-10-02
- 0.1.0 — 2014-10-01
- 0.0.3 — 2014-10-01
- 0.0.2 — 2014-08-15
- 0.0.1 — 2014-08-15
- 0.0.0 — 2014-07-04

## README

node-qiita
==========

[Qiita API](http://qiita.com/api/v2/docs) の nodejs wrapper


インストール
============

`npm install --save qiita`


使い方
======

```coffee
Qiita = require "qiita"
# インスタンス化
q = new Qiita token: "xxxxxxxxx" # tokenはオプショナル

# インスタンス化 (qiita teamの場合)
q = new Qiita team: "team_id", token: "xxxxxxxxx"

# id, passwordからトークン取得
q.auth.post url_name: "myname", password: "abcdedg", (err, res, data) ->
  console.log data.token

# 投稿の作成
q.items.post
  title: "吾輩は猫である"
  body: "吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当が....."
  tags: [{name: "小説"}]
, (err, res, body) ->
  # リクエスト結果の検証
  throw err if err?
  console.log "successfully posted to Qiita."

# タグ一覧の取得
q.tags.get (err, res, tags) -> console.log tags

# 特定ユーザの投稿一覧の取得 (ネストしたリソース)
q.users.items.get url_name: "sakatam", (err, res, items) -> console.log items
```


これからやる
============

* pagination への対応

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