UNPKG

my-own-words

Version:

A small tool that I have created to keep safe all those words/expressions that I come across when I'm learning a new language

12 lines (9 loc) 283 B
const { listExists, getLists, getAndParseWords } = require('./fs-helpers.js'); function list(listName) { if (!listName) return getLists(); if (listExists(listName)) return getAndParseWords(listName); return `${listName} list doesn't exists!`; } module.exports = { list, };