New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lingo-app

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lingo-app

a simple lingo app in node

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

lingo

simple lingo app in node.js

usage:

var colors = require('colors'); // for printing strings in colors
const { Lingo } = require('lingo-app')

const wordLength = 6
const lingo = new Lingo(wordLength)

console.log(lingo.getFirstLetter()) // 'a'

const preview = lingo.guess('afdruk')


if (preview.result){
  const res = preview.result.split('')
  let print = ''
  res.forEach((c, index) => {
    const letter = readLine.charAt(index)
    if (c === '#') {
      print += letter.green
    } else if (c === '*') {
      print += letter.cyan
    } else {
      print += letter
    }
  })
  console.log(print) // in colors: 'af___k'
} else {
  console.log(preview.error.red)
}

console.log(lingo.preview.join(''))

Keywords

lingo

FAQs

Package last updated on 19 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts