0.0.18 • Published 4 years ago

typeinside v0.0.18

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

Typeinside · Build Status Coverage Status NPM version

Install

npm i typeinside --save

Usage

get article data

import { article, request, getAppId } from "typeinside";

const appId = await getAppId();

/** @returns Article[]*/
let articleList = await article.list(galleryName, appId);

download image

const galleryName = "cat";

let index = await article.lastIndex(galleryName, appId);
let imgList = await article.image(galleryName, index, appId);

for (let img of imgList) {
  /** @returns { fileName: string, extension: string, data: Stream } */
  await request.image(img.full);

  // or download directly
  await request.image.save(img.full, "./catImages/");
}

License

MIT

other languages

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago