{"id":21387484,"url":"https://github.com/nju33/tuta","last_synced_at":"2025-03-16T12:29:03.251Z","repository":{"id":57382408,"uuid":"86072134","full_name":"nju33/tuta","owner":"nju33","description":"🌿 A growing search","archived":false,"fork":false,"pushed_at":"2017-03-30T07:18:33.000Z","size":426,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T04:06:44.246Z","etag":null,"topics":["form","input","pure-javascript","search"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nju33.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-24T13:40:20.000Z","updated_at":"2017-03-24T13:44:30.000Z","dependencies_parsed_at":"2022-09-26T16:50:16.250Z","dependency_job_id":null,"html_url":"https://github.com/nju33/tuta","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Ftuta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Ftuta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Ftuta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nju33%2Ftuta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nju33","download_url":"https://codeload.github.com/nju33/tuta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235204562,"owners_count":18952331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form","input","pure-javascript","search"],"created_at":"2024-11-22T12:13:21.243Z","updated_at":"2025-01-23T00:14:31.974Z","avatar_url":"https://github.com/nju33.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuta\n\n\u003c!-- [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n[![Build Status](https://travis-ci.org/nju33/tuta.svg?branch=master)](https://travis-ci.org/nju33/tuta) --\u003e\n\n🌿 A growing search\n\n\n![screenshot](https://github.com/nju33/tuta/raw/master/images/screenshot.gif?raw=true)\n\n## Install or Download\n\n```sh\nyarn add tuta\nnpm i -S tuta\n```\n\nOr access to [releases page](https://github.com/nju33/tuta/releases).\nThen, download the latest version.\n\n## Usage\n\nFirst, if you read as a separate file\n\n```html\n\u003cscript src=\"/path/tp/tuta.js\"\u003e\u003c/script\u003e\n```\n\n```js\nimport Tuta from 'tuta';\n\nnew Tuta({\n  target: document.getElementById('form')\n  data: {\n    style: {\n      // defaults\n      width: '10em',\n      height: '2em',\n      border: '1px solid #222',\n      borderRadius: '2px',\n      transition: '.2s cubic-bezier(0.455, 0.03, 0.515, 0.955)',\n      baseColor: '#fff',\n      subColor: '#222',\n      accentColor: '#cb1b45'\n    },\n    // Alternate icon (HTML)\n    // If it is null it will be Octicon's search.\n    // default: null\n    icon: null,\n    // When you put it on the right, it stretches to the left,\n    // If you place it on the left it will extend to the right.\n    // default: 'right'\n    iconPosition: 'right',\n    onSubmit(searchText, form, reset) {\n      console.log(arguments);\n      // Empty the contents of `\u003cinput\u003e` and store the form.\n      reset();\n    }\n  }\n});\n```\n\n### Example\n\n- `test/fixtures/index.js`\n- `example/webpack/index.js`\n\n## LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2017 nju33 \u003cnju33.ki@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnju33%2Ftuta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnju33%2Ftuta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnju33%2Ftuta/lists"}