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

iserv

v0.2.2

Published

IServ API Wrapper for nodeJS

Downloads

3

Readme

IServTool

Kind: global class
Licence: MIT
Version: 0.2
Author: dunklesToast / Tom Sacher

new IServTool(ServerHost, username, password, [keepalive], [log], [reuseCookies])

Create a IServTool instance

| Param | Type | Default | Description | | --- | --- | --- | --- | | ServerHost | String | | the host of the IServ Instance. Without protocol | | username | String | | username used for login | | password | String | | password used for login | | [keepalive] | boolean | | Not yet implemented | | [log] | boolean | false | Enable debug logging | | [reuseCookies] | boolean | | save cookies and reuse them. only works for one user |

iServTool.login() ⇒ Promise.<void>

Login

Kind: instance method of IServTool

iServTool.getNotifications(since) ⇒ Promise.<Object>

Get all notifications from the Server for the logged in account

Kind: instance method of IServTool

| Param | Type | Description | | --- | --- | --- | | since | String | Date where the Server should start fetching |

iServTool.getMailFolders() ⇒ Promise.<Object>

Get all Mailfolders / Inboxes for current user

Kind: instance method of IServTool

iServTool.getUnreadMails() ⇒ Promise.<Object>

Get all Mails in INBOX

Kind: instance method of IServTool

iServTool.getMessagesForInbox([path], [length], [start], [column], [dir]) ⇒ Promise.<Object>

Get all Messages for specified Inbox

Kind: instance method of IServTool

| Param | Type | Default | Description | | --- | --- | --- | --- | | [path] | String | "INBOX" | | | [length] | int | string | 50 | Amount of Mails returned | | [start] | int | string | 0 | Offset (50 for starting at 50. Mail) | | [column] | string | "&quot;date&quot;" | Set column for sorting | | [dir] | string | "&quot;desc&quot;" | Sorting direction (desc/asc) |

iServTool.getUpcomingEvents([includeSubscriptions], [limit]) ⇒ Promise.<Object>

Get all upcoming Events

Kind: instance method of IServTool

| Param | Type | Default | Description | | --- | --- | --- | --- | | [includeSubscriptions] | boolean | true | Include Subscriptions | | [limit] | int | String | 14 | how many events to be returnes |

iServTool.getUserProfilePic(user, [w], [h]) ⇒ Promise.<Object>

Get a users Profile Picture. Returns false if no image was found

Kind: instance method of IServTool

| Param | Type | Default | Description | | --- | --- | --- | --- | | user | String | | Username you want the image from | | [w] | int | String | "" | Image width, leave blank for full size | | [h] | int | String | "" | Image height, leave blank for full size |

iServTool.getMessageByID(id, [path]) ⇒ Promise.<Object>

Get a Message (Mail) by ID

Kind: instance method of IServTool

| Param | Type | Default | Description | | --- | --- | --- | --- | | id | int | String | | Message ID | | [path] | String | "INBOX" | Message Path (Inbox name) |

iServTool.userLookup(query) ⇒ Promise.<Object>

Quick user lookup - for autocompletion

Kind: instance method of IServTool

| Param | Type | Description | | --- | --- | --- | | query | String | Query |

iServTool.getFolderTree([subfolder]) ⇒ Promise.<Object>

Get Folder Tree (Files)

Kind: instance method of IServTool

| Param | Type | Default | Description | | --- | --- | --- | --- | | [subfolder] | String | "" | ID to create tree. Leave blank for root |

iServTool.getEventSources() ⇒ Promise.<Object>

Get all EventSources aka Calendars

Kind: instance method of IServTool

iServTool.getEventsFromSource(source, start, end) ⇒ Promise.<Object>

Get Events from Source

Kind: instance method of IServTool

| Param | Type | Description | | --- | --- | --- | | source | String | Path to source | | start | String | Start date for query | | end | String | End date for query |

iServTool.isCookieValid() ⇒ Promise.<Object>

Check if the saved Cookies are still valid

Kind: instance method of IServTool