Zekfad / nhentai-api

Node.JS client for nhentai.net undocumented API.
https://zekfad.github.io/nhentai-api/
ISC License
42 stars 6 forks source link

Expose Tag "types" more easily. #8

Closed Zekfad closed 2 years ago

Zekfad commented 3 years ago

Current API:

import { Tag, } from 'nhentai-api';

console.log(Tag.types.Artist);

New API:

import { TagTypes, } from 'nhetai-api';
const  { Artist, } = TagTypes;

console.log(Artist);