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

h2to-cli

v1.0.14

Published

cli for yycorp project

Downloads

32

Readme

Functionalities

Setup Dev Environment

Commands

Usage: h2to-cli setup-eslint-ts [options] [project-path]

setup typescript and eslint for nodejs project

Arguments:
  project-path                     .

Options:
  -bD, --build-dir [string]        path of build Dir (default: "dist")
  -tD, --test-dir [string]         path of test Dir (default: "__test__")
  -tscnf, --tsconfigpath [string]  tsconfig path for eslint parser (default: "tsconfig.json")
  --project-type [node|browser]    your project type (default: "node")
  --no-ts                          dont use ts ?
  --has-declaration-map            do you need generate declaration mapping for type building
  --is-sub-module                  is your project a package within a monorepo yarn context ?
  --include-paths [paths...]       paths should be percevied by typescript (default: [])
  -h, --help                       display help for command

Steps

Setup tools and scripts

As per the specific project type, we have the correspondent deps for tools and scripts for building and running or testing.

tools: ts-patter, yl-ddd-ts, fp-ts, ... scripts: build, test, lint, ...

Setup Eslint

Setting up Eslint so we can harness linting technology to automatically clean and consistent, and save us from common programming errors, or stylistic error.

We should try to enforce the same eslint configuration accross the projects

Setup Typescript

Setting up the TypeScript compiler enables strong typing in your project. This helps prevent errors by ensuring you pass the correct data types to functions and variables, leading to more reliable and maintainable code.

Substack Harvester

You have subscribed to a publisher and you want to download all the archived articles to your local machine so you can read them in the future. Our cli provision a functionality to export all article of your subscribing publisher to pdf files.

Usage: h2to-cli harvest-substack [options] <publisher_url> <publisher_i>

harvesting substack publisher articles

Arguments:
  publisher_url                  publisher url
  publisher_i                    publisher id

Options:
  -max, --max_page [number]      max page (default: -1)
  -limit, --limit_page [number]  page size (default: 10)
  -h, --help                     display help for command

for example

yarn test-run harvest-substack blog.bytebytego.com bytebytego