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-panetastic

v0.1.4

Published

A cute fantastic pane for the atom-editor, wraps your contents with rainbows.

Downloads

2

Readme

Panetastic

A cute fantastic pane for the atom-editor, wraps your contents with rainbows.

Panetastic integrates into the bottom of the current Workspace and allows you to toggle a resizable space-pen View.

How to use

Create a new pane by instantiating a Panetastic class, by providing an object containing the embedding view-class and an optional object containing the params. Panetastic will try to create and initialize a new instance of your provided class-object.

Panetastic = require 'atom-panetastic'

@pane ?= new Panetastic(
  {
    view: YourEmbeddedView,
    params: { title: "I'm embedded" }
  }
)

Panetastic is mentioned to fully fit into the space-pen-framework.

Features

  • Panetastic is implemented as space-pen-view, embedding your provided view as subview.
  • Panetastic initializes your view with params and unicorns.
  • Panetastic offers a simple destroy()-chain.

API

Constructor

panetastic = new Panetastic({
  view: <<view-prototype>>,
  params: { <<params>> },
  active: true,
  size: $(document.body).height() / 4
})

view: necessary: The given View-object to become instantiated, initialized and embedded.

Caution: if you're going to embed a ScrollView, you might need to set height: 100%; overflow: auto; at the top-level of your embedded view, in order to make it scrollable!

params: optional: The params you'd like to provide your embedded view during initialization. Due to space-pen's behaviour the params will be accessible in your content and initialization-method.

active: optional: Activation-state of your pane, if set to false, toggling the pane to open is not permitted. Closing the pane is always possible. Standard is true.

size: optional: Initial size of your pane if it get's toggled and wasn't resized. You may provide a css-like height-value as string or a pixel-count as number. Standard is a fourth of the current document-height.

Attributes

.active: Read-write: If set to false, the pane won't open on a toggle-event if the pane is closed. The value gets initialized by the corresponding constructor-value.

.subview: Your embedded view-object.

Methods

bool isVisible(): Returns true if the pane currently is visible.

toggle(): Toggles the visibility of the pane. If the pane was resized during last opened time, it will remember the users-setting.

destroy(): Tries to call destroy() of the embedded view and completely removes the whole pane afterwards.