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

cell-cycle

v0.0.2

Published

The Cellarise Cycle framework.

Downloads

1

Readme

cell-cycle

view on npm npm module downloads per month Dependency status Build Status ![Test Coverage](https://img.shields.io/badge/coverage -75%25_skipped:0%25-yellow.svg?style=flat)

The Cellarise Cycle framework.

Installation

npm install cell-cycle --save

Configuration

API

Modules

| Param | Type | Default | Description | | --- | --- | --- | --- | | opts | Object | | optional options | | [opts.modulePrefix] | Object | 'gulp-' | load dependencies that start with this prefix in package.json. |

Example

Usage:

var cell-cycle = require('cell-cycle');

utils/coverageStats ⇒ Object

Coverage statistic utilities

Returns: Object - coverage statistics utility functions

| Param | Type | Description | | --- | --- | --- | | logger | bunyan | A logger matching the bunyan API |

utils/coverageStats.addStats(collection, pkg)

Helper function to append statistic properties from the provided collection to the provided package.json

Kind: static method of utils/coverageStats

| Param | Type | Description | | --- | --- | --- | | collection | Object | a collection of statistic properties | | pkg | Object | package.json object |

utils/coverageStats.deleteStats(collection)

Helper function to delete total, covered and skipped statistic properties from a collection

Kind: static method of utils/coverageStats

| Param | Type | Description | | --- | --- | --- | | collection | Object | a collection of statistic properties |

utils/coverageStats.badgeColour(collection, stat, watermarks)

Helper function to determine badge colour

Kind: static method of utils/coverageStats

| Param | Type | Description | | --- | --- | --- | | collection | Object | a collection of statistic properties | | stat | Object | a statistic from the collection to calculate the badge for | | watermarks | Object | the high and low watermarks for each statistic in collection |

utils/coverageStats.calculateCoverageStats(coverageReport, packageJSON)Object

Calculate coverage stats from an istanbul coverage.json report and append to provided package.json config.coverage.stats property. The coverage stats include an overall coverage percentage and badge colour.

Kind: static method of utils/coverageStats
Returns: Object - updated package.json object

| Param | Type | Description | | --- | --- | --- | | coverageReport | Object | the istanbul generated coverage.json report object | | packageJSON | Object | the package.json object |

tasks/codeAnalysisTasks

A module to add gulp tasks which execute static code analysis.

| Param | Type | Description | | --- | --- | --- | | gulp | Gulp | The gulp module | | context | Object | An object containing the following properties: | | context.cwd | String | The current working directory | | context.package | Object | The package.json for the module | | context.argv | Array | The arguments past to the gulp task | | context.logger | bunyan | A logger matching the bunyan API |

tasks/codeAnalysisTasks~code_analysisthrough2

A gulp build task to execute static code analysis on the files at package.json:directories.lib. The report results are saved to package.json:directories.reports

Kind: inner property of tasks/codeAnalysisTasks
Returns: through2 - stream

tasks/coverageStatsTasks

A module to add a gulp task which calculates coverage stats from the Istanbul reporter json-summary.

| Param | Type | Description | | --- | --- | --- | | gulp | Gulp | The gulp module | | context | Object | An object containing the following properties: | | context.cwd | String | The current working directory | | context.package | json | The package.json for the module | | context.argv | Array | The arguments past to the gulp task | | context.logger | bunyan | A logger matching the bunyan API |

tasks/coverageStatsTasks~coverage_statsthrough2

A gulp build task to calculate coverage stats from the Istanbul reporter json-summary. Coverage stats are appended to package.json config.coverage.stats property. The coverage stats include an overall coverage percentage and badge colour.

Kind: inner property of tasks/coverageStatsTasks
Returns: through2 - stream

tasks/defaultTasks

A module to add a gulp task which executes the default task.

| Param | Type | Description | | --- | --- | --- | | gulp | Gulp | The gulp module |

tasks/defaultTasks~default : Gulp

A gulp build task to run the default tasks. The following tasks are executed in sequence: ["test"] The sequence works by piping each task to the next.

Kind: inner property of tasks/defaultTasks

| Param | Type | Description | | --- | --- | --- | | cb | function | callback |

tasks/testTasks

A module to add gulp tasks which run test steps.

| Param | Type | Description | | --- | --- | --- | | gulp | Gulp | The gulp module | | context | Object | An object containing the following properties: | | context.cwd | String | The current working directory | | context.package | Object | The package.json for the module | | context.argv | Array | The arguments past to the gulp task | | context.logger | bunyan | A logger matching the bunyan API |

tasks/testTasks~instrumentthrough2

A gulp build task to instrument files. Istanbul will override the node require() function to redirect to the instrumented files.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

tasks/testTasks~test_coverthrough2

A gulp build task to run test steps and calculate test coverage. Test steps results will be output using mocha-bamboo-reporter-bgo reporter. This task executes the Instrument task as a prerequisite.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

tasks/testTasks~test_coverthrough2

A gulp build task to run test steps and calculate test coverage (but not output test coverage to prevent gulp-istanbul issues with webdriverIO). Test steps results will be output using mocha-bamboo-reporter-bgo reporter. This task executes the Instrument task as a prerequisite.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

tasks/testTasks~test_coverthrough2

A gulp build task to run test steps and calculate test coverage (but not output test coverage to prevent gulp-istanbul issues with webdriverIO). Test steps results will be output using mocha-bamboo-reporter-bgo reporter. This task executes the Instrument task as a prerequisite.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

tasks/testTasks~write_coveragethrough2

A gulp build task to write coverage.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

tasks/testTasks~testthrough2

A gulp build task to run test steps and calculate test coverage. Test steps results will be output using spec reporter.

Kind: inner property of tasks/testTasks
Returns: through2 - stream

documented by jsdoc-to-markdown.

Changelog

License

MIT License (MIT). All rights not explicitly granted in the license are reserved.

Copyright (c) 2015 John Barry

Dependencies

[email protected] - "MIT License (MIT)", documented by npm-licenses.