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

@sifrr/dev

v0.0.44

Published

All you need to develop packages/apps.

Downloads

57

Readme

sifrr-dev · npm version

Development tools for sifrr packages, webapps

Size

| Type | Size | | :------------------------------- | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------: | | Normal (dist/sifrr.dev.cjs.js) | Normal |

Tools

  • getRollupConfig Rollup configs to bundle JavaScript/TypeScript for node packages, es modules and browser packs. Supports node syntax as well as es module syntax, and TypeScript.
  • generateChangelog Generate Changelog during release
  • loadDir Load directory recursively
  • eslintrc ESLint config and prettier
  • deepMerge Deep Merge Objects
  • checkTag check if a tag exists on github
  • exec async execute a shell command with stdout and stderr
  • gitAddCommitPush run command > git add files > git commit > git push
  • runTests Run a full fledged test suite using mocha, chai, sinon, puppeteer, etc. Supports node syntax as well as es module syntax.

Other packages

Usage

Husky

Just add .huskyrc and you are good to go.

ESlint

Add this to your eslintrc config

{
  extends: ['sifrr']
}

and add pre-commit hook in your .huskyrc

{
  "hooks": {
    "pre-commit": "yarn eslint --fix \"src/**/*.js\" && git add -A"
  }
}

sifrr eslint config extends prettier config and plugin, you can add prettier.config.js if you want to change default options for prettier.

commitlint

add commit-msg hook in your .huskyrc

{
  "hooks": {
    "commit-msg": "yarn commitlint -e $HUSKY_GIT_PARAMS"
  }
}

add commitlint.config.js to your root folder

module.exports = {
  extends: ['@commitlint/config-conventional']
};

Upload coverage to Coveralls

set COVERALLS_REPO_TOKEN environment variable, run tests with lcov reporter, Upload with this command:

cat ./coverage/lcov.info | yarn coveralls

Eslint

Add tihs to your .eslintrc.js

module.exports = {
  extends: ['@sifrr']
};

Prettier

Add prettier.config.js, and it will be picked by eslint. Add prettier extension in code editor you use for best use.