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

init-pkg-json-cli

v1.0.0

Published

📦 Complex generator of Package.json CLI

Downloads

3

Readme

Install

npm install init-gitignore-cli

Cli

Usage
	$ init-pkg-json <option>

Options
	--docs               Read online documentation
	-h, --help           Show this help message and close
	-v, --version        Show packge version
	-f, --feedback       Send a feedback
			--indentation    Set package.json indentaion
	-n, --name           Add name to packge.json: required *
			--pkg-version    Add version to packge.json: required *
	-d, --description    Add description to packge.json
	-k, --keywords       Add keywords to packge.json
	-l, --license        Add license to packge.json
	-r, --repository     Add repository url link to the packge.json
	-h, --home           Add homepage link to packge.json
	-b, --bugs           Add bugs link to packge.json
	-a, --author         Add author to packge.json
			--files          Add files to packge.json
	-m, --main           Add primary entry point file
			--bin            Executable files included with your project that will be installed
	-s, --scripts        For now, pass an object as script (pass an object)
			--dependencies   Add dependencies (pass an object)
			--dev-dep        Add dev dependencies (pass an object)
	-e, --engines        The engines specify versions of clients that must be used with your package

Example
	$ init-pkg-json -n "pkg-name" --pkg-version "1.0.0" -d "My amazing pkg"

Example

This is a big example 😅 : I'll be creating an interactive CLI for this module soon!

$ init-pkg-json -n "pkg-n" --pkg-version 1.0.3 -d "great-pkg" -k "pkg amazing" -l "MIT" -b https://github.com/u/r/issues -h https://yourpkg.org -r "https://gitub.com/u/p.git git" -a "Name [email protected] https://y.com" --files "filename.js dir/ glob/*.{js,json} test.js" --bin "command: bin/f.js, command1: index.js" -s "build-project: node build-project.js, test: test.js" --dependencies "pkg1: ^3.1.4" -e "node: >=4.4.7, yarn: ^0.14.0"

Result in package.json

{
  "name": "pkg-n",
  "version": "1.0.3",
  "description": "great-pkg",
  "keywords": [
    "pkg",
    "amazing"
  ],
  "license": "MIT",
  "homepage": "https://yourpkg.org",
  "bugs": "https://github.com/u/r/issues",
  "repository": {
    "type": "git",
    "url": "https://gitub.com/u/p.git"
  },
  "author": {
    "name": "name",
    "email": "[email protected]",
    "url": "https://y.com"
  },
  "files": [
    "filename.js",
    "dir/",
    "glob/*.{js,json}",
    "test.js"
  ],
  "bin": {
    "command": "bin/f.js",
    "command1": "index.js"
  },
  "scripts": {
    "build-project": "nodebuild-project.js",
    "test": "test.js"
  },
  "dependencies": {
    "pkg1": "^3.1.4"
  },
  "engines": {
    "node": ">=4.4.7",
    "yarn": "^0.14.0"
  }
}

Related

Team

|Carlos Abraham Logo| | :-: | | Carlos Abraham |

License

MIT License © Carlos Abraham