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

0.0.18 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i typeinside

Weekly Downloads

1

Version

0.0.18

License

MIT

Unpacked Size

108 kB

Total Files

75

Last publish

Collaborators

  • marscop