How to gracefuly try to load packages in Lua?
snippet in lua

How to gracefuly try to load packages in Lua?

user2393

local status, module = pcall(require, 'ansicolors')
ansicolors = status and module or nil