Skip to content

suchipi/naut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naut

simpler version of shelljs

Usage

const naut = require("naut");

naut.ls().forEach(file => {
  naut.mv(file, file + ".bak");
});

Global Usage

require("naut/global");

ls().forEach(file => {
  mv(file, file + ".bak");
});

API

  • ls
  • pwd
  • cd
  • rm
    • Always behaves like -rf is set
  • mkdir
    • Always behaves like -p is set
  • cp
    • You can pass -R or -r or -a to as the first argument to copy a directory instead of a file
  • mv
  • touch
  • cat
  • exec
  • $ (command substitution simulator)
  • echo
    • You can use .to and .toEnd like in shelljs

About

simpler version of shelljs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published