codescalersinternships / home

home repo for internships
4 stars 0 forks source link

Coreutils - TypeScript - Mariam Mahrous #167

Open mariammahrous23 opened 4 months ago

mariammahrous23 commented 4 months ago

CoreUtils in Typescript

Description Goal is to reimplement several core Unix utilities. giving exposure to Typescript basics, including file I/O, flag parsing, string manipulation, and more.

Requirements

  1. Create Typescript programs that replicate the functionality of the following Unix utilities:

    • [ ] head
    • [ ] tail
    • [ ] wc (word count)
    • [ ] cat
    • [ ] echo
    • [ ] tree
    • [ ] yes
    • [ ] true
    • [ ] false
    • [ ] env
  2. Each utility should be implemented as a separate Typescript program.

  3. Programs should read input from files or stdin as appropriate.

  4. Implement basic flags for each utility where applicable.

Example Implementations

  1. head
  1. wc (word count)

4. cat

5. echo

Acceptance Criteria

  1. Each utility is implemented as a separate Typescript program.
  2. Includes basic error handling.
  3. Includes a README with build and usage instructions for all utilities.