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

randomize-files

v1.1.0

Published

![ES Version](https://img.shields.io/badge/ES-2020-yellow) ![Node Version](https://img.shields.io/badge/node-14.x-green)

Downloads

3

Readme

Randomize Files (Specially for Randomized NFTs)

ES Version Node Version

Installation

You can install the package using NPM

Using NPM

npm install randomize-files

Using Yarn

yarn add randomize-files

Getting Started

Prerequisites

Usage

Arguments
=========

from (required)     ->  The count where the randomized number should be started (e.g. if from = 15, that means the number should not be less than 15)
to (required)       ->  The count where the randomized number should be ended (e.g. if to = 99, that means the number should not be greater than 99)
json                ->  The folder or path of JSON files (e.g. The metadata files are located at /files/json, so the json = files/json)
images              ->  The folder or path of images files (e.g. The images are located at /files/images, so the images = files/images)
name                ->  The name of NFT in the metadata you want to update. (e.g. name = "MyNFT", so in the metadata, the name will become "MyNFT#1" for NFT number 1)
description         ->  The description of NFT in the metadata you want to update.
image               ->  The image URL of the NFT you want to update in the metadata. Normally, it's an IPFS URI where the image is hosted.
removesource        ->  If you want to remove source files after randomization, pass true (default: false)

Note

If you want to randomize both JSON and image files, please make sure, the counting of both files is equal otherwise the randomization results in a bad one.

Using (Passing Arguments)

Command:
npx randomize -- from=[from count] to=[to count] json=[json folder OR path] images=[images folder OR path] name=[update name in metadata] description=[update description in metadata] image=[update image url path in metadata] removesource=[true OR false]

Example:
npx randomize -- from=1 to=1000 json=files/json name="Hello World" description="This is description" image="https://example.com/ipfs" removesource=false

Using (Prompt)

Command:
npx randomize-prompt

Build

After being randomized, the files are moved to the build folder with logs.