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

@mentormaya/helper

v1.0.1

Published

This is the utility module for node js to generate .sample.env file for the projects.

Downloads

7

Readme

NODE HELPER

This is the helper utility tool for the projects for developer. This tool is aimed to help developers 🧑‍💻 with many small things like setup, generate boilerplate code, generating sample.env file and many more.

NODE HELPER helps with ....

  • [x] sample.env file generator 🗂️
  • [ ] boilerplate code generator 🗂
    • [ ] Static Website 🌍
    • [ ] Next.js 🌍
    • [ ] React App 🌍
  • [ ] init ESLint 🖥️
  • [ ] init test with jest 🧪

Installation

It can be install with below command using npm

npm i -D @mentormaya/helper

It can be install with below command using yarn

yard add -D @mentormaya/helper

It can be install with below command using pnpm

pnpm add -D @mentormaya/helper

Basic Syntax

Usage: helper [options] [command]

where options are:

Options:
  -V, --version      output the version number
  -h, --help         display help for command

and commands are:

Commands:
  gen-env [options]  Generate Sample ENV(.env.sample) from .env file.
  help [command]     display help for command

Usage

simply run the following command in the terminal of your choice.

Note: This is the Node CLI tool, thats why you need to have nodejs pre installed in your operating system for this tool to work.

helper

will show about the app and usage.

basic usage of helper

for help

helper --help

will show the help for the helper:

help with options

or

help [command]

will show the help for the helper or for the selected command if command provided:

help with options

Also we can know about the version information of the command with

help -V

or

help --version

will show the version for the helper:

help with options

for generating a sample.env from project .env file

Warning: Be aware that this command will replace you existing .env.sample or any name for sample you provided if already exist in the root of your project.

helper gen-env

This will prompt you for the values required to generate the sample.env file such as your .env file name, your sample.env filename, the value template etc.

sample env generator

Also you can generate the output to only the screen and not actually write it to file.

helper gen-env -d

or

helper gen-env --dry-run

or simply select true or say Yes while prompting if you use

helper gen-env

sample env generator

This way you can verify the content before writting it to the file.

Great 🥳

Lot's of noise right 👉

Let's do it silently without any interaction. Incase you have to include it in the precommit of your git repository to automatically generate sample.nv file each time you make a commit.

helper gen-env -s

or

helper gen-env --silent

This will do the job silently with default values and ofcourse, you can supply your own values with the options as below:

helper gen-env -s -n .my-env -N .sample-env

or

helper gen-env --silent --name .my-env --sample .sample-env

Yahoooo!!!! 🎉🎉🎉

Let's Rock and Roll now without any tension to forget to update the sample.env file anymore.