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

@ezpaarse-project/ezmesure-admin

v2.3.1

Published

Command line utilities to manage ezMESURE

Downloads

2

Readme

ezmesure-admin

Prerequisite

  • git >= 2.27.0
  • NodeJS >= 14.15.0
  • npm >= 6.14.8

Install

$ npm i -g @ezpaarse-project/ezmesure-admin

Usage

$ ezmesure-admin --help
$ ezadmin --help
$ eza --help

Global options

| Name | Type | Description | | --- | --- | --- | | -t, --timeout | String | Request timeout in milliseconds | | -v, --verbose | Boolean | Make the operation more talkative | | --version | Boolean | Print the version number | | --help | Boolean | Show some help |

Commands

| Name | Description | | --- | --- | | cluster | Manage cluster | | completion | Use auto completion | | config | Manage ezmesure-admin config | | counter4 (deprecated) | Load counter4 files in Kibana | | counter5 | COUNTER5 commands | | dashboard | Manage Kibana dashboards | | indices | Manager ezMESURE/Kibana users | | index-pattern | Manager ezMESURE/Kibana users | | institutions | Manage ezMESURE institutions | | login | Login user in commands | | logout | Log out from ezMESURE | | ping | Ping ElasticSearch and ezMESURE | | profile | Displays the person who is connected to the command | | reporting | Manage ezMESURE reporting | | roles | Manage Kibana roles | | spaces | Manage Kibana spaces | | sushi | Manage ezMESURE sushi | | users | Manage ezMESURE/Kibana users |

Development

$ git clone https://github.com/ezpaarse-project/ezmesure-admin.git
$ cd ezmesure-admin
$ npm install

To use the command in development mode simply use it as follows: ./ezmesure-admin <command>

Tests

Set EZMESURE_ADMIN_USERNAME and EZMESURE_ADMIN_PASSWORD envrionment variables.

You need configure elastic and ezmesure config before use.

The user cannot be a reserved user (ex: elastic, ...). He must have superuser rights to perform the tests

It can be the default user created at the initialization of ezMESURE using the same environment variables.

$ npm run test

i18n

  1. In ezmesure-admin file, add your locale in locales array.
  2. Create your locale JSON file in locales folder.
  3. Import i18n in your commande file
  4. Use i18n.t() function to translate

Example :

Command file :

const { i18n } = global;

exports.command = 'mycmd';
exports.desc = i18n.t('mycmd.description');
exports.builder = {};
exports.handler = async function handler() {
  console.log(i18n.t('mycmd.helloWorld'))
};

Locale file :

{
  "mycmd": {
    "descritpion": "This is my command",
    "helloWorld": "Hello World"
  }
}

License

CeCILL.