Initial implementation of npm-ls like functions