Coder Social home page Coder Social logo

typedef's Introduction

typeDef

A Terminal Wiki for file types and extensions

"Know more about the files on your computers!"

Example :

$ typedef README.md
"Markdown Documentation(.md)"
"John Gruber"
"Developer Files"
"An MD file is a text file created using one of several possible dialects of the Markdown language..."

It will get all the information about the file (name, developer, type, description)

Need It? Install It!

Requirements

  • jq JSON Processor
  • lynx Terminal Browser
$ sudo apt install jq && sudo apt install lynx

Install the Script

$ wget https://raw.githubusercontent.com/abhishtagatya/typeDef/master/typedef
$ sudo install -Dm 755 typedef /usr/bin/typedef

Time to check it out!

typeDef has a couple of options to retrieve data from 'extension.json', so make sure you are connected to the Internet for better user experience

Info not enough? Go to web!

$ typedef --web filename.json

This will redirect you to https://fileinfo.com via Lynx browser for full information of the file type.

Want a reliable source? Links!

$ typedef --link filename.jpg

This will give you the link to https://fileinfo.com according to your file type.

Want new feature? Update It!

$ typedef --update

This will update your typedef script and install it to '/usr/bin/typedef'

Stuck? Show Help!

$ typedef --help

More features are going to be added to make the program better for use!

Contributions

Access our 'extension.json'

We rely on you, the users to become a part of our team to build a complete library of file types to make it usable for every file in existent.

If you want to add some new file types to add, please do it in the following format :

"[ext]" : {
  "header" : "[File Name](.ext)",
  "developer" : "[Developer]",
  "category" : "[File Category]",
  "description" : "[Description]"
}

And of course, feel free to use access our 'extension.json' because it will be updated frequently

https://raw.githubusercontent.com/abhishtagatya/typeDef/master/extension.json

Knowledge Sources

We decided to get information of files using https://fileinfo.com because of their vast library of file types and descriptions.

We decided to put little bits of that information into the 'extension.json' because there hasn't been a complete library of file extensions in JSON that is publicly usable (but I could be wrong completely).

Authors

  • Abhishta Gatya - Initial Work

License

This project is licensed under the MIT License - see the LICENSE file for details

typedef's People

Contributors

abhishtagatya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rimvislt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.