Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

charity-base

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

charity-base

A javascript client library for using charity-base-api

  • 3.0.1
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CharityBase Client Library (JavaScript)

A JavaScript client library for interacting with the CharityBase REST API. For full documentation see the CharityBase Docs.

Authorisation

Log in to the CharityBase API Portal and create an API key.

Install

With Yarn:

yarn add charity-base

Or npm:

npm install --save charity-base

Example

Search for "homeless" charities with income range £100k - £1m, sorted by descending income:

const CharityBaseClient = require('charity-base')

const charityBase = new CharityBaseClient({
  apiKey: 'my-api-key'
})

charityBase.charity.list({
  'fields': ['income.latest.total'],
  'search': 'homeless',
  'incomeRange': [100000, 1000000],
  'sort': 'income.latest.total:desc',
  'limit': 10,
  'skip': 0,
})
.then(res => {
  console.log(res.charities)
})
.catch(e => {
  console.log(e.message)
})

(Remember to replace my-api-key with your actual key, copied from the CharityBase API Portal)

Docs

Keywords

FAQs

Package last updated on 13 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc