New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

libgenesis

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libgenesis

An API workaround the library genesis platform to enable query search

latest
Source
npmnpm
Version
1.1.10
Version published
Maintainers
1
Created
Source

LibGenesis

Build Status GitHub package.json version npm npm GitHub npm bundle size

A simple module for getting and downloading paid books or PDF's for free. This module is based on Library Genesis and works by getting books straight from the portal. More features will be integrated soon.

How it works

  • Install and require the package
    const libgen = require('libgenesis');
  • Pass your search query.

The function returns a promise, Hence, you are to wait for response as below

    libgen("book name here").then(function(books){
        //do something with books
        console.log(books);
    }).catch(function(error){
        //throw error
        throw error;
    })
  • The returned array of objects contains the various fields as in the example below
    A null value is returned when no book was found for the search term. And download of books is possible by a simple GET request to the link in the donwload property in the response.
    [
        { 
            id: '2348853',
            title: 'From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars',
            author: 'Manfred "Dutch" Von Ehrenfried',
            language: 'English',
            filesize: '13.32MB',
            extension: 'pdf',
            download: 'http://download.library1.org/main/2348000/31d6ee634d383579863137448c347b67/Manfred "Dutch" Von Ehrenfried - From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars-Springer Praxis Books (2019).pdf',
            bookImage: 'http://library1.org/covers/2348000/31d6ee634d383579863137448c347b67-d.jpg' },
        { 
            id: '2348854',
            title: 'From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars',
            author: 'Manfred "Dutch" Von Ehrenfried',
            language: 'English',
            filesize: '74.75MB',
            extension: 'epub',
            download: 'http://download.library1.org/main/2348000/b628824068dd80a12773e43e8fd93bac/Manfred "Dutch" Von Ehrenfried - From Cave Man to Cave Martian: Living in Caves on the Earth, Moon and Mars-Springer Praxis Books (2019).epub',
            bookImage: 'http://library1.org/covers/2348000/b628824068dd80a12773e43e8fd93bac-d.jpg' 
        }
    ]

If you've been waiting for long for this. Please star the project on GitHub

Hence you can do what you want with it. Thank You

Keywords

library

FAQs

Package last updated on 06 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts