yomoujs
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

yomoujs

Build Status

小説家になろう API ライブラリ with TypeScript

Usage

ピックアップ

import yomoujs from "yomoujs";
 
(async function () {
  const a = await yomoujs.Pickup();
  console.log(a)
}());

小説情報

import yomoujs from "yomoujs";
 
(async function () {
    const novel = await yomoujs.getNovel("n4845ec");
    console.log(novel)
}());
 Novel
{
  title'「「神と呼ばれ、魔王と呼ばれても」」',
  ncode'N4845EC',
  userid570481,
  writer'しまもん',
  story'遥か未来の地球。そこには神の如き力を持つ一人の少女が存在している。少女は太古に栄えた旧人類最後の生き残りだ。\n' +
    'そして少女が住んでいる地球では、「魔法」という新しい技術を使いこなす新人類が誕生しつつあった。\n' +
    'そんな新人類を少女はジッと観察する。\n' +
    '時に神と呼ばれ、時に魔王と呼ばれても、少女は新人類を見続ける。\n' +
    'これは、ただ孤独に生きる一人の少女と、懸命に生きる新人類との間に起こった長い長いお話。',
  biggenre4,
  genre403,
  gensaku'',
  keyword'R15 近未来 ハッピーエンド 未来SF 超越者 シムワールド 宇宙戦争 エログロ 群像劇 女主人公 百合描写あり',
  general_firstup'2017-07-09 18:50:00',
  general_lastup'2019-06-14 22:36:43',
  novel_type1,
  end0,
  general_all_no95,
  length270960,
  time542,
  isstop0,
  isr151,
  isbl0,
  isgl0,
  iszankoku0,
  istensei0,
  istenni0,
  pc_or_k2,
  global_point20180,
  fav_novel_cnt5744,
  review_cnt10,
  all_point8692,
  all_hyoka_cnt915,
  sasie_cnt1,
  kaiwaritu12,
  novelupdated_at'2019-08-15 21:40:23',
  updated_at'2019-08-15 21:44:06'
}

作者・ユーザー情報

import yomoujs from "yomoujs";
 
(async function () {
    const user = await yomoujs.getUser("1017640");
    console.log(user)
}());
User
{
  id'1017640',
  username'PiusProxy',
  hurigana'パイアスプラクシー',
  site{
    name'ブログ',
    image'https://cdn-ak.f.st-hatena.com/images/fotolife/e/ergofriend/20190720/20190720012842.png',
    url'https%3A%2F%2Fergofriend.hatenablog.com%2F'
  },
  about'こんちゃっすー'
}

Dependents (0)

Package Sidebar

Install

npm i yomoujs

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

22.1 kB

Total Files

18

Last publish

Collaborators

  • ergofriend