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

bulletjspusher

v2.0.2

Published

A package to push (yes, only push) things using Push Bullets API

Downloads

9

Readme

bulletjspusher

This is a small side project I decided to make for fun! :)

Where to get the PushBullet details needed for this package

You can get the all the idens and the access token from the main website of PushBullet.

The access token:

To get an access token, create a PushBullet account. When logged into your account, head over the the settings and click on "account". Scroll a bit down and you should see a gray button with the text "Create access token". Click on this button and copy the token to use in this package.

To get idens for devices:

When logged into your PushBullet account, head over to devices. You should see a list of all your connected devices. Click on one of the devices and copy the the string of characters after "/#devices/". This is your device iden.

alternatively you could use:

pb.GetBullet('OPTION');

This will console log the requested data. The options for this function are:

  • channels
  • chats
  • contacts
  • devices
  • grants
  • pushes
  • subscriptions

How does it work

This package is very very VERY simple to understand, so don't worry :)

To import this package, simply use:

const pb = require('bulletjspusher');

The 2 functions this package has are very simple to use. If you simply want to push a note to a device, channel or clinet, use the following code:

pb.PushBullet('ACCESS TOKEN');

pb.PostBullet(
    'note', // This is the type of push
    'Hello World Again!', // This is the body of the message
    'Hello World!', // This is the title of the message
    'device_iden', // Here you decide where you want to push the message. Other options are "channel_tag" and "client_iden"
    'DEVICE IDEN' // Or off course use the channel tag if you filled in "channel_tag" before or the client iden if you filled in "client_iden" before
);

If you want to push a link or file you should use this instead:

// For pushing a link
pb.PostBullet(
    'link', // The type of push
    'Hello World Again!', // The body of the message
    'Hello World!', // The title of the message
    'device_iden', // Or "channel_tag", "client_iden"
    'DEVICE IDEN', // Or "CHANNEL TAG", "CLIENT IDEN"
    'URL' // The url you want to send with the push
);

// For pushing a file
pb.PostBullet(
    'file', // The type of push
    'Hello World Again!', // The body of the message
    'Hello World!', // The title of the message
    'device_iden', // Or "channel_tag", "client_iden"
    'DEVICE IDEN', // Or "CHANNEL TAG", "CLIENT IDEN"
    'URL', // The url to the file (file must be uploaded to something like mediafire for example)
    'file name', // Put in the name of the file
    'file type', // The MIME type of the file
);

This is all you have to do to push messages via pushbullet!

The explaination to all parameters are also added into vscode via @param.

When bugs or issues occur

You can report these to me via githubs issue tab.

I can't promise that I will get rid of the bugs and issues people may find, because I am still a student and I don't have much time because of school. (Sorry in advance)