Skip to content

A simple framework to create simple input/output functions.

License

Notifications You must be signed in to change notification settings

coolreader18/stdio.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy IO

A simple framework to create simple input/output functions.

Installation/Usage

The intent is to provide users with a very easy setup process, an entire easy IO app could be contained in a single HTML file:

<!DOCTYPE html>
<html lang="en">
<head>
  <link rel=stylesheet href=https://cdn.jsdelivr.net/npm/primer@10.4.0/build/build.css>
  <title>stdio App</title>
  <script src="https://cdn.jsdelivr.net/npm/stdio.js/build/stdio-primer.min.js"></script>
  <script>
  stdio.title("My Cool Thing").add(
    {
      type: "textInput",
      name: "the input",
      label: "Type in right here"
    },
    {
      type: "output",
      link: "the input",
      transform: str =>
        str
          .split("")
          .reverse()
          .join("")
    }
  );
  </script>
</head>
<body>
</body>
</html>

That will create a nice looking interface where someone can input a sentence, and it will spit out the reverse of it.

License

This project is licensed under the MIT license please see the LICENSE file for more details.

About

A simple framework to create simple input/output functions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages