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

ijijin-cli

v0.9.3

Published

ijijin FE build tools cli.

Downloads

1

Readme

ijijin-cli

Version

0.9.3

update info:

  • 2019.02.14: update typeicalbuild.

Install

	npm install -g ijijin-cli

Usage

1.easy server

	ijijin -s

or

	ijijin --server

browser: http://localhost:8443/

params

  • port(p): listen port(default:8443);
  • dirname: listen dirname

example

	ijijin -s -p 3000 --dirname D:/

proxy.config.js

if folder has 'proxy.config.js', the proxy can add interfaces(Array) from the file. as

	// proxy.config.js
	module.exports = {
		target: 'http://www.npm.com',
		urls: [
			'/public/Activity/',
			'/nodetest/'
		]
	}

2.image build

format image file to webp and blur base64 string. If fs system find the render HTML file, it will replace ijijin-img="..." to src="{{blured base64 image}}" data-format="{{image format}}" data-original="{{image path}}"

*need gm and ImageMagick

    ijijin -m

or

    ijijin --image

params

  • config: config file (default: img.config.js).(optional)
  • pc: handle pc rendered HTML file.

example

    ijijin -m --config src/img.config.js

* html image load render

if root directory has 'index.html', imageBuilder will render image label which has 'ijijin-img' attribute.

for example

before:

	<img ijijin-img="images/01.base64" />

after:

	<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAABMCAMAAAARIrRIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFo6Oj8vLy5OTk6urq1dXVvLy8wsLC+Pj4tLS0mZmZz8/Pra2tn5+f3d3dyMjI////YQ+hcQAAAitJREFUeNrsl8sSpCAMRQmvkID4/387ICqg2GpXzWJqOgtL1APkEhIU81cmftjfxVT0goSP8g2mHG3m1GOMiYKVOKO0gYgfYjaNAes9GCL7CEtjxb7JDzB17D4SqXvMk799csYkkbx/dMLMoGtP5g4TpAciiRsMRv4nlfAaAxNyXOAJg/w4GBhisEAUBotb4izACDNkUjxdYPOMphWmYiFP7xrrX4kP7/pX6/V/wgLBRwzGSn65biCuogRKlAi4iMkMmmFKStBFTF4aivttOsx//otkPsoJ99gUuvz3DEuyj0T6hHEQWVv7rlDJZbG8fFnfltWKr8uiyph6X021EPp3UvgnMOmmQz7YCjgPMPQR17OFOgQYr9nEDDBw5PP3GIg3K5/7sgH4WGPF1m1Qa/Sutu83u5TmeprqfNNCpeBNrSmnAAyunolk6s5skzhgi4eZ4HyJTfqQswpir8wnDKbFf0tT2qGtAqW7C0zTpIsqbsYiLMhkKnVkqkxH36hMxBDv2YOLBBBllanH9KLkjC6lgUi2uCI3CeQyS7dgtsEKBVxyoqXA2PrSYlyxmKk0Eoni+5TWyagRhi2mfe7cmxqQ2gdsMe+cC5TvuPUNZW8wYzdJm9wUZ0xSbzyPfTththmLn2Pc5fEW09M3mCauy/0YC+QR9uDS68bbMcfV7I6lQ4LH7tdCPlFSNjUn+cjb+eNOyan7jyiRWzHgtvz1rX3f5V30qwFX9keAAQB9xdgkMNNdNgAAAABJRU5ErkJggg==" data-format="png" data-original="images/01" />
  • src: base64 blured image;
  • data-format: original image format;
  • data-original: original image path;

get base64 string

example

    ijijin --base64 logo.png

if you want to change image type, add type argument

    ijijin --base64 logo.png --type jpg

get webp image

example

    ijijin --webp logo.png

3.typical project build

init typical project folder and core files.

    ijijin -t {tasktype}

or

    ijijin --typical {tasktype}

default folder name: Time string.

param

  • name: folder name;

types

  • v/vue: vue project;
  • r/react: react project;
  • w/webpack: webpack project(no frame, with zepto);
  • g+w/gulp+webpack: gulp+webpack project(no frame, with zepto);

command

run development:

	npm run start

run build:

	npm run build

run production:

	npm run build:prod

example

    ijijin -t webpack --name 2018test

Author

Micheal Wayne

Update time

2019.02.14