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

atom-message-panel

v1.3.1

Published

An easy way to display your messages in Atom

Downloads

494

Readme

The Atom Message Panel

npm version npm license npm downloads Gitter chat

The easy way to display your messages in Atom.

preview

Why!?

To streamline how plugin messages are displayed in Atom! :fist:

Checkout this list of packages already using Atom Message Panel.

Usage

JavaScript:

var MessagePanelView = require('atom-message-panel').MessagePanelView,
    PlainMessageView = require('atom-message-panel').PlainMessageView;

var messages = new MessagePanelView({
  title: 'It\'s alive..... IT\'S ALIIIIIVE!!!!'
});

messages.attach();

messages.add(new PlainMessageView({
  message: 'I did it mommy, I made my first Atom Message Panel!',
  className: 'text-success'
}));

CoffeeScript:

{MessagePanelView, LineMessageView} = require 'atom-message-panel'

messages = new MessagePanelView
    title: 'Remember your Coffee!'

messages.attach()

messages.add new LineMessageView
    line: 1
    character: 4
    message: 'You haven\'t had a single drop of coffee since this character'

API

MessagePanelView:

It all depends on this guy, this is your init function and you will need it :sunglasses:

  • new MessagePanelView(params):
  • title: the title of your panel
  • rawTitle: sat to true will allow the title to contains HTML (default is false)
  • closeMethod: What should the close button do? hide (default) or destroy.
  • speed: how fast you what the fold/unfold function to run (default is fast)
  • recentMessagesAtTop: should new messages be added at the top? (default is false)
  • position: should the panel attach to the "top", "bottom", "left" or "right" (default is bottom)
  • maxHeight: set a max-height of the panel body (default is 170px)
  • attach(): append the panel to the Atom view
  • close(): closes the panel
  • setTitle(title:string,raw?:boolean): change the panel title
  • toggle(): fold/unfold the panel
  • unfold(): unfold the panel
  • clear(): clear the body
  • add(): add a view to the panel
  • remove(index): remove a view from the panel
  • state(): get current state informations about your panel

PlainMessageView:

Lets you add a simple message :speech_balloon:

  • PlainMessageView(params):
  • message: your message to the people
  • raw: sat to true will allow the mesage to contains HTML (default is false)
  • className: adding css classes to your message (this is optional)

LineMessageView:

Lets you add messages for a specific line and character, and it will even navigate the user to that position with a single click :boom:

  • LineMessageView(params):
  • message: your message to the people
  • line: what line are we talking about?
  • file: so, was that in some other file? (this is optional)
  • character: lets be more specific of what we are talking about (this is optional)
  • preview: lets you display a code snippet inside a pre tag (this is optional)
  • className: adding css classes to your message (this is optional)

License

MIT © tcarlsen