resource-system

for interacting with the operating system

npm install resource-system
2 downloads in the last week
8 downloads in the last month

system

for interacting with the operating system

API

properties

methods

for interacting with the operating system

  • id

    • type : any

methods

system.info()

provides information about current operating system

system.useradd(options, callback)

adds a user to a group

  • options

    • type : object

    • properties

      • user

        • description : the name of the user to add

        • type : string

        • required : true

      • group

        • description : group to add user to

        • type : string

        • default : big-users

  • callback

    • type : function

system.userdel(options, callback)

removes a user from a group

  • options

    • type : object

    • properties

      • user

        • description : the name of the user to add

        • type : string

        • required : true

      • group

        • description : user group to add user to

        • type : string

        • default : big-users

  • callback

    • type : function

system.passwd(options, callback)

changes a user's password

  • options

    • type : object

    • properties

      • user

        • description : the name of the user to update password for

        • type : string

        • required : true

      • password

        • description : the new password

        • type : string

        • required : true

  • callback

    • type : function

system.groupadd(options, callback)

adds a new group to the system

  • options

    • type : object

    • properties

      • name

        • description : the name of the group

        • type : string

        • required : true

  • callback

    • type : function

system.members(options, callback)

lists members of a group

  • options

    • type : object

    • properties

      • name

        • description : the name of the group

        • type : string

        • default : big-users

        • required : true

  • callback

    • type : function

system.kill()

README auto-generated with docs

npm loves you