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

@phoenix-plugin-registry/brackets-yuidoc

v1.2.0

Published

Inserts YUIDoc comment blocks when you select/highlight a function or property. Use Ctr+Alt+Y and a YUIDoc comment block will be inserted with the correct function/property names. Provides the starting framework within which you can then edit things such

Downloads

6

Readme

Brackets-yuidoc

Brackets extension for inserting YUIDoc comment blocks. Works with JS, CoffeeScript and ES6.

Usage

In the Brackets editor, select/highlight the property or method that you want to document then either select from the edit menu "Insert YUIDoc property" or use the shortcut keys Ctrl+Alt+Y. A YUIdoc comment block boilerplate will be inserted with property/method names etc filled in.

JavaScript

	/**
	* Description for myMethod
	* @private
	* @method myMethod
	* @param {Object} something
	* @param {Object} somethingElse
	* @return {Object} description
	*/
	function myMethod(something, somethingElse) {
		var result = something + somethingElse;
		return result;
	}

	/**
	* Description for MyClass
	* @private
	* @method MyClass
	* @param {Object} something
	* @param {Object} somethingElse
	* @return {Object} description
	*/
	function MyClass(something, somethingElse) {
		/**
		* Description for something
		* @private
		* @property something
		*/
		this.something = something;
		/**
		* Description for classMethod
		* @private
		* @method classMethod
		* @return {Object} description
		*/
		this.classMethod = function(){
			return this.somethingElse;
		};
	}

	/**
	* Description for myOtherClass
	* @private
	* @method myOtherClass
	* @return {Object} description
	*/
	var myOtherClass = function () {

	};
	
	/**
	* Description for anotherMethod
	* @private
	* @method anotherMethod
	* @return {Object} description
	*/
	myOtherClass.prototype.anotherMethod = function(){
		return this.somethingElse;
	};
	
	/**
	* Description for someotherMethod
	* @private
	* @method someotherMethod
	* @return {Object} description
	*/
	myOtherClass.someotherMethod = function(){
		return this.somethingElse;
	};

CoffeeScript

	###*
	# Description for MyClass
	# @class MyClass
	# @constructor
	# @extends someOtherBaseClass.AnotherClass
	###
	class MyClass extends someOtherBaseClass.AnotherClass
	
		###*
		# Description for someProperty
		# @private
		# @property someProperty
		###
		someProperty: 'My Property'
	
		###*
		# Description for myMethod
		# @private
		# @method myMethod
		# @param {Object} something
		# @param {Object} somethingElse
		# @return {Object} description
		###
		myMethod: (something,somethingElse) ->
			return something + somethingElse

As you can see from the example, all properties and methods will be labeled as private. The extension has no real way of telling if a property is private or not, so by default it labels everything as private. The assumption is that it is easier to remove the tag than it is to type it in. For similar reasons, all parameter types are Objects and you will need to edit this if that is wrong. Likewise, the description will also need to be edited and a decision made whether you need the return tag and, if so, whether you want a description for the return.

Screenshot 1

Screenshot 2