0.1.17 • Published 3 years ago

onix-gen-funstory v0.1.17

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

onix-gen-funstory

a library to generate ONIX

npm version npm downloads


Usage

Install the lib and add it as a dependency (recommended), run on your project dir:

yarn add onix-gen-funstory

Demo Code

import { ONIXGenerator } from 'onix-gen-funstory';

async function main(){
  const onixGenerator = new ONIXGenerator({
    senderName: 'Funstory',
    contactName: 'Mark Chow',
    emailAddress: 'email@email.com',
    cityOfPublication: 'BeiJing',
    countryOfManufacture: 'CN',
    publisherName: 'Funstory',
    websiteLink: 'https://funstory.ai',
  });
  // Generator initializing
  await onixGenerator.init();

  // ONIX Generating
  const onixResult = await onixGenerator.genONIX({
    bookName: mainBook.bookname,
    volume: volumeIndex + 1,
    author: mainBook.author,
    translator: 'Lemon Novel',//Babel Novel | Lemon Novel | Fancy Novel
    description: mainBook.desc,
    isbn: isbnNum,
    subjectCode: mainBook.subjectCode,
    price: mainBook.price,
    keywords: mainBook.keywords,
    preOrderDate: '2019-09-15',
    publicationDate: '2019-09-20',
    salesRestriction: 'ALL',//ALL TOP_FIVE KINDLE_ONLY(default)
    subTitle: 'sub Title',
    // takedown: true,
    // pageCount: 300,
  });

  console.log(onixResult)
}
0.1.17

3 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago