3.0.0 • Published 5 years ago

@pixim/core v3.0.0

Weekly downloads
1
License
AGPL-3.0-or-later
Repository
github
Last release
5 years ago

@pixim/core

npm

Powerful Pixiv API client for browser/Node.js

Features

  • Static typing with TypeScript
  • Compatible with both of browser and Node.js
  • List implemented with Async iterator

Installation

npm i @pixim/core --save

Usage

import { Pixiv } from '@pixim/core';

const token = await Pixiv.login({
  username: 'foobar123',
  password: 'password',
  client_id: 'Clinet ID',
  client_secret: 'Client secret',
}).then(({response}) => response.access_token);

const pixiv = new Pixiv({ token });

pixiv.fetchUserDetail('12345').then((user) => {
  console.log(user) // -> data of the user
})

for await (const illusts of pixiv.fetchRankingPictrues('day')) {
  console.log(illusts) // -> Daily ranking with pagination
}

Development

yarn --pure-lockfile
yarn run test
yarn run build

Notes

  • In Pixiv API, there's two meanings of illust. One is just an illustration, the other is an union of illustrations and mangas. Therefore, we're using name picture for the later.
  • Plural of manga is mangas

License

AGPL-3.0-or-later

3.0.0

5 years ago

2.2.0

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.2-rc2

6 years ago

0.0.1

6 years ago