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

wpinstaller

v1.0.3

Published

Install WordPress CMS on your local PHP dev environment

Downloads

11

Readme

WPinstaller

WPinstaller is a Node.js CLI module that let you install easily WordPress CMS sites on your local PHP dev environment such as XAMPP, Wamp or MAMP

Installation

You can install this module globally or locally

Install globally

$ npm install -g wpinstaller

Install locally

$ npm install --save wpinstaller

Usage

globally

Enter to your htdocs folder

$ cd htdocs

Create and enter to your site directory

NOTE: A dir must be provided

$ mkdir my-wp-site && cd my-wp-site

Open your terminal and run wpinstaller command

$ wpinstaller

Or with npx

$ npx wpinstaller

Once you will run the wpinstaller command, a prompt configuration will be displayed in the terminal

Prompt config questions

| Input | Description | Default | | ------ | ------ | ------ | | Site language | The language that the site will be displayed | EN | | Database | The name of the database you want to use with WordPress. Database name is required! - If the database does not exist in your Database Service ( MySQL or MariaDB ) it will created automatically for you according to the Database name you will supply | | | User | Your database username such as root | root | | User password | Your database password, no password required for root | | | Port | Wikipedia | 8080 | | Host | You should be able to get this info from your web host | localhost | | Prefix | If you want to run multiple WordPress installations in a single database | wp_ | | Site title | Your WordPress site title | Simple site title | | Admin username | The username will be used for log in after the installation | admin | | Admin password | The site admin password | 123456 | | Admin email | The site admin email address | [email protected] |

After a successful installation you will be able to access your site at:

e.g http://localhost:8080/my-wp-site

locally

const path = require('path');
const wpinstaller = require('wpinstaller');
const site_name = 'my-wp-site';
const site_directory = path.resolve( process.cwd(), site_name );

wpinstaller( site_directory )
  .then( status => {
    console.log( status );
    process.exit(0);
  })
  .catch( err => {
    console.error( err );
    process.exit(1);
  });

License

MIT