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

n26

v1.5.3

Published

Un-official node.js module for interact with your N26 (previously Number26) account

Downloads

11

Readme

N26 :credit_card:

:warning: number26 was renamed to n26

npm Travis branch Coveralls bitHound Known Vulnerabilities GitHub license Greenkeeper badge

Un-official node.js module for interact with your n26 (previously number26) account

Open a free N26 account here :gift:

NPM

Api docs

What's N26 ?

N26 is Europe's first bank account developed entirely for smartphones. With your N26 bank account, MasterCard® and mobile app, you can conveniently transfer money from anywhere and keep track of your finances at all times. With MoneyBeam you're able to send money via sms or e-mail without the need to enter all the account details.

There are no costs or fees, which means you can withdraw money at any ATM worldwide, free of charge. No ATM around you? Just use CASH26 to withdraw and deposit cash at your supermarket.

Open a free account here :gift:

This module

n26 has some un-official apis. This module provide you clean functions to interact with your account.

Not all endpoints are available yet.

WIP :construction:

  • [x] Auth
  • [x] Get Transactions (with search)
  • [x] Add / update memo on transactions
  • [x] Create a transfert
  • [x] unpair
  • [ ] pair
  • [ ] certify transfer

Dependencies

n26 depends on:

  • bluebird: Bluebird is a full featured promise library with unmatched performance.
  • moment: A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.
  • request-promise: The world-famous HTTP client 'Request' now Promises/A+ compliant.

Use :sos:

How to install

npm i n26 --save

Example

const N26 = require('n26');

const myAccount = new N26('[email protected]', 'password')
  .then(account => account.transactions({text: 'Lafayette'})
  .then(transactions => {
  /*
    [{
      "id" : "abbc81ce-a5ab-4b5b-a5c2-82541bdb4630",
      "type" : "PT",
      "smartLinkId" : "1125318169-598442",
      "amount" : -21.79,
      "currencyCode" : "EUR",
      "originalAmount" : -21.79,
      "originalCurrency" : "EUR",
      "exchangeRate" : 1.0,
      "merchantCity" : "PARIS",
      "visibleTS" : 1455292872000,
      "mcc" : 5977,
      "mccGroup" : 4,
      "merchantName" : "LAFAYETTE INT.",
      "merchantId" : "970003006643142",
      "recurring" : false,
      "userId" : "8a21b871-0585-481b-ab62-8e3e2d380757",
      "linkId" : "1125318169-598442",
      "accountId" : "5430d368-a0d3-45b3-bcf7-607ece248fa5",
      "category" : "micro-leisure",
      "cardId" : "24f7804b-8a95-4e80-b48a-11fe395ed505",
      "pending" : false,
      "transactionNature" : "NORMAL",
      "confirmed" : 1455494400000
    }]
   */
  });

API

Api docs

Testing

Mocked

do it, it's safe !

Run npm test for full mocked testing with coverage.

:warning: Unmocked :warning:

Less asserts. Used to detect api change.

Run npm run test-unmock for un-mocked test.