Socket
Socket
Sign inDemoInstall

esa-node

Package Overview
Dependencies
5
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    esa-node

esa.io API v1 client library for nodejs.


Version published
Weekly downloads
746
decreased by-41.72%
Maintainers
1
Install size
386 kB
Created
Weekly downloads
 

Readme

Source

esa-node

npm version

esa.io API v1 client library for nodejs.

Installation

via npm

$ npm install --save esa-node

via yarn

$ yarn add esa-node

Supported methods

  • teams
  • team
  • members
  • posts
  • post(post_number)
  • create_post
  • comments
  • comment
  • invitation
  • user

Example

// Setup
import Esa from 'esa-node'
const esa = new Esa('access_token', 'teamName')

// Fetch posts
const res = await esa.posts()
console.log(res.posts)

// Change team
const teamResponse = await esa.teams()
esa.setTeam(teamResponse.teams[1].name)
const posts = esa.posts()

Contributing

  1. Fork it ( https://github.com/mottox2/esa-node/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

FAQs

Last updated on 21 Feb 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc