npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

say-me

1.1.9 • Public • Published

say-me

This npm module say you what programs or npm modules installed on current machine.

Npm module say-me used npm module say-me and it is cool!

Build Status:master Build Status:develop Dependency Status devDependency Status Code Climate Test Coverage npm version GitHub version

NPMNPM

Install

Install as local module
npm i say-me
npm i --save say-me
npm i -D say-me
Install as global module
npm i -g say-me

Using in JS code

Include module and create object
var SayMe = require('say-me');
var sayMe = new SayMe();

or

var sayMe = require('say-me/create');
Program is installed
var programName = 'npm';
var res = sayMe.programIsInstalled(programName);
console.log(res);
console.log(sayMe.programList);

true [ { name: 'npm', isInstall: true } ]

Programs is installed
var programList = [
  'git',
  'npm',
  'say-me',
  'test-module',
  'jasmine',
  'shelljs'
];
var res = sayMe.programsIsInstalled(programList);
console.log(res);
console.log(sayMe.programList);

false [ { name: 'git', isInstall: true }, { name: 'npm', isInstall: true }, { name: 'say-me', isInstall: true }, { name: 'test-module', isInstall: false }, { name: 'jasmine', isInstall: true }, { name: 'shelljs', isInstall: false } ]

Npm module is installed
var moduleName = 'shelljs';
var res = sayMe.npmModuleIsInstalled(moduleName);
console.log(res);
console.log(sayMe.programList);

true [ { name: 'shelljs', isInstall: true } ]

Npm modules is installed
var moduleArr = [
  'git',
  'npm',
  'say-me',
  'test-module',
  'jasmine',
  'shelljs'
];
var res = sayMe.npmModulesIsInstalled(moduleArr);
console.log(res);
console.log(sayMe.programList);

false [ { name: 'git', isInstall: false }, { name: 'npm', isInstall: false }, { name: 'say-me', isInstall: false }, { name: 'test-module', isInstall: false }, { name: 'jasmine', isInstall: true }, { name: 'shelljs', isInstall: true } ]

Npm module is installed with global flag
sayMe.isGlobal = true;
moduleArr = [
  'npm',
  'jasmine'
];
var res = sayMe.npmModulesIsInstalled(moduleArr);
console.log(res);
console.log(sayMe.programList);

true [ { name: 'npm', isInstall: true }, { name: 'jasmine', isInstall: true } ]

Returns all installed npm modules
res = sayMe.getAllNpmModules();
console.log(res);

[ { version: '0.6.1', from: 'optimist@>=0.6.1 <0.7.0', resolved: 'https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz', name: 'optimist' }, ...]

Using in console

Need install say-me module as global module

say-me
say-me --pii -p git
say-me --psii git node npm
say-me --npmmii -p say-me
say-me --npmmsii say-me jasmine
say-me --npmmsii -g say-me jasmine

Examples

Start

git clone git@github.com:AlekseyLeshko/say-me.git
cd say-me
make

install

npm i say-me

Downloadsweekly downloads

48

version

1.1.9

license

MIT (https://github.com/AlekseyLeshko/say-me/blob/master/LICENSE)

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability