npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@rentablo/pdf-import

v2.9.12

Published

Creates Rentablo activities from PDF statements of brokers

Downloads

9

Readme

Tresor-Import - The File Import of Tresor One

This is the PDF and PP-CSV Import used on rentablo.de.

Supported Brokers

All brokers supported by tresor-import are listed in the documentation.

Installation

npm install @rentablo/pdf-import

Usage

import getActivities from '@rentablo/pdf-import';

async fileHandler() {
  const results = await Promise.all(Array.from(this.$refs.myFiles.files).map(getActivities));
  results.forEach(result => {
    console.log(result);
  });
}

The function getActivities returns an objects with the following fields:

| Name | Description | | ---------- | ------------------------------------------------------------------------------------------------------------------------------ | | file | The file name of the input file. | | activities | List of activities which was parsed from the input file. The activity object is broken down here. | | status | The status code which contains the information about the reason why no activities was found. For Details see the status table. | | successful | The simple way to check if at least one activity was found and the status code is equals zero. |

The status field can contains one of the following values, described here.

How to calculate the amount

To understand the amount calculation please read the amount documentation here (in German).

Contribute

To contribute:

  1. fork the repo
  2. install and start npm i && npm start
  3. open the logged URL, usually http://localhost:5000, in your browser
  4. Import a PDF. Content is shown in your Javascript console
  5. Write a parser in src/brokers to parse that content - see src/brokers/comdirect.js for inspiration
  6. Add and run all tests npm t
  7. Create a Pull Request

Licensing

Usage of this codebase is permitted according to the GNU Affero General Public License v3 (AGPL-3.0).

HERE'S AN INCOMPLETE SUMMARY. READ THE FULL LICENSE BEFORE USING.

  • You are permitted to:
    • Use this codebase in any way you want including commercially
    • Modify and distribute the codebase in any way you want
  • You MUST:
    • Respect the copyright which is held by the maintainers of this project
    • Disclose all changes you made to the code and also publish any code directly based on this code
    • Give attribution to the original maintainers when using this project (especially when used commercially)
  • You can not
    • Sublicense this codebase
    • Expect any liability, warranty or similar by the original maintainers. However, we want to improve this project as much as possible so feedback is heard!

See also the following image, taken from TL;DR Legal. apgl3 Overview from TL;DR Legal