nacre
    TypeScript icon, indicating that this package has built-in type declarations

    0.3.0 • Public • Published

    Nacre

    version-beta

    Nacre is an intuitive shell designed for those who prefer to work with objects over text. Want to give it a try?

    Builtins at your fingertips

    Navigate smoothly with preview, completion and your favorits builtins: ls, cd, chmod, chown, stat, grep, and more.

    builtins_black

    Automatic module loading

    The auto-require mechanism imports your modules when you need it. Explicit import can also be done with require().

    import_back

    Installation

    npm install -g nacre

    More details about the installation.

    Example

    An example is better than a long speech:

    > ls()
    [ 'foo' ]
    
    > touch('bar')
    'bar'
    
    > ls()
    [ 'bar', 'foo' ]
      
    // inspect foo's permissions
    > chmod('foo')
    {
      user: { read: true, write: true, execute: false },
      group: { read: true, write: false, execute: false },
      others: { read: true, write: false, execute: false }
    }
    
    > chmod.add.execute.user('foo')
    {
      user: { read: true, write: true, execute: true },
      group: { read: true, write: false, execute: false },
      others: { read: true, write: false, execute: false }
    }
    
    > const perm = chmod('foo')
    
    // inspect the value of perm variable
    > perm
    {
      user: { read: true, write: true, execute: true },
      group: { read: true, write: false, execute: false },
      others: { read: true, write: false, execute: false }
    }
    
    // give bar the same permissions as foo 
    > chmod.set('bar', perm)
    {
      user: { read: true, write: true, execute: true },
      group: { read: true, write: false, execute: false },
      others: { read: true, write: true, execute: false }
    }

    Available commands

    See the documentation.

    Contributing

    See CONTRIBUTING.md.

    License

    MIT. See LICENSE.

    Install

    npm i nacre

    Homepage

    nacre.sh

    DownloadsWeekly Downloads

    9

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    332 kB

    Total Files

    103

    Last publish

    Collaborators

    • ninroot