Skip to content

apipackage/bash

Repository files navigation

logo.apipackage.com

About apipackage

Few examples:

  • Install apipackage project
  • Install letpath package

Install apipackage examples

git clone https://github.com/apipackage/example

Install apipackage

install dependencies from file: apifork.txt

./apifork install

OR for development

./apifork install apifork.dev.txt

install packages and build for apipackage from file: apipackage.txt

./apipackage.sh install

OR

We are working on apipackage folder

cd apipackage 

install packages inside apipackage

cd apifork
./add https://github.com/letwhois/bash bash letwhois
./add https://github.com/reactphp/dns php reactphp

Start apipackage

Test default functions

Show the example functions

cat ../scripts/example2.txt

http("https://www.rezydent.de/").xpath("title");


Check how it works

./apipackage.sh ../scripts/example2.txt

www | Rezydent Podatkowy Niemiec


Test loaded package function

Install letpath package to apipackage project in /apipackage/bash/letpath

./add.sh https://github.com/letpath/bash bash letpath

Show the example functions

cd apipackage
cat ../scripts/example7.txt

http("https://www.rezydent.de/").letpath.tag("title");

./apipackage.sh ../scripts/example7.txt

check from command

./apipackage.sh 'http("https://www.rezydent.de/").letpath.tag("title")'
./apipackage.sh 'letpath.tag("title")'

get whois data

./apipackage.sh 'letwhois.ns("softreck.com")'
./apipackage.sh 'letwhois.reverseIp("8.8.8.8")'

get ip from domain host

./apipackage.sh 'letwhois.domainIp("softreck.com")'
./apipackage.sh 'nslookup("softreck.com")'

Check how it works

./apipackage.sh ../scripts/example7.txt

www | Rezydent Podatkowy Niemiec


Test removing package function

remove letpath package from apipackage project in /apipackage/bash/letpath

./del.sh bash letpath

Contribution

Solutions for development:

Install

Install dependencies after created project

curl https://raw.githubusercontent.com/apifork/bash/main/apifork.sh -o apifork
echo "https://github.com/flatedit/bash.git flatedit" > "apifork.dev.txt"
./apifork install apifork.dev.txt

Install package list after created project

curl https://raw.githubusercontent.com/apipackage/bash/main/apipackage.sh -o apipackage
echo "https://github.com/letwhois/bash apidsl/apidsl/bash letwhois" >> "apipackage.txt"
./apipackage install

Edit documentation with flatedit

echo "./DOCS/MENU.md" >> "flatedit.txt"
echo "./DOCS/ABOUT.md" >> "flatedit.txt"
echo "./DOCS/FOOT.md" >> "flatedit.txt"

Update documentation

 ./flatedit

Config project file

The config file: .apifork can be another, e.g. projects.txt

Just change the first line in .apifork on projects.txt

projects.txt

install

minsungson/GitHub-cURL: A guide to installing files from GitHub repos in terminal using cURL

./apifork install

OR

./apifork

update

./apifork update

remove

./apifork remove

Tags

  • scripts
  • language

Releases

No releases published

Packages

No packages published

Languages