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

@form8ion/lift

v9.1.3

Published

tool for running sub-scaffolders on existing projects

Downloads

1,269

Readme

lift

tool for running sub-scaffolders on existing projects :aerial_tramway:

Node CI Workflow Status Codecov OpenSSF Scorecard SLSA Level 2

Table of Contents

Features

  • Runs registered sub-scaffolders independantly of the project-scaffolder, enabling existing projects to be lifted with additional functionality
    • Injects badges from the sub-scaffolder results into the README.md as long as the existing README.md lists the badges using the (fairly recent) zoning convention
  • Modify existing README.md files to add badges
  • Apply lift enhancers for additional project-specific updates

Usage

npm Try @form8ion/lift on RunKit MIT license node

Installation

$ npm install @form8ion/lift --save-prod

Example

Import

import {lift, questionNames} from '@form8ion/lift';

Execute

(async () => {
  await lift({scaffolders: {}, decisions: {[questionNames.SCAFFOLDER]: 'foo'}, enhancers: {}});
})();

API

scaffolders object (required)

  • keys: string Name of each scaffolder
  • values: function Does the scaffolding when executed
    • receives an options object as the first argument
      • projectRoot: string path of the working directory where the CLI command was executed
      • vcs: object details of the exisitng vcs and host
        • owner: string owner of the vcs host account
        • name: string name of the repository on the host

decisions object (optional)

Answers for expected prompts, to enable consistent behavior while skipping those particular interactive prompts

  • keys: string Name of each question
  • values: mixed The answer to provide instead of being prompted interactively

enhancers object (optional)

Additional lift processors to be applied to projects based on the result of applying the provided predicate function to the current project

  • keys: string Name of each enhancer. Provided only for developer experience. Does not influence execution behavior.
  • values: function Does the additional lifting when executed
    • receives an options object as the first argument
      • projectRoot: string path of the working directory where the CLI command was executed
      • results: object results returned from executing the chosen sub-scaffolder
      • vcs: object details of the exisitng vcs and host
        • owner: string owner of the vcs host account
        • name: string name of the repository on the host

Contributing

Conventional Commits Commitizen friendly semantic-release PRs Welcome Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test