tiger-script

1.1.0 • Public • Published

Guide

Get the module working in a script:

tiger = require("tiger-script")

Functions:

log: Easily logs data in a specified color. (uses chalk, so it supports all of chalk's keyword colors)

E.G: tiger.log("bgGreen", "Example of log")

Returns: [mm/dd/yy hh:mm:ss AM / PM] [In green] Example of log

addJSON: Adds the specified JSON key and value to the specified file.

E.G: tiger.addJSON("./example.json", "key", "value")

Returns: Adds "key": "value" to the JSON file example.json

uploadToHastebin: (Most code by sparkychild) Adds text to hastebin web page

E.G: tiger.uploadToHastebin("Example Text", function(link) { console.log(link) })

Returns: Link to Hastebin with string "Example Text" in it

prompt: Just like a JavaScript prompt Before use, do prompt = tiger.prompt

tiger.reverse(string): Reterned reversed string used on

tiger.insertChar(string,char,position): Returns string with inserted character into string.

queryUrl: Gets the specified CSS selector text from URL with callback.

E.G: tiger.queryUrl("https://www.google.com/", "title", function(answer) { console.log(answer) })

Returns: Google.com title element

Readme

Keywords

Package Sidebar

Install

npm i tiger-script

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

6.82 kB

Total Files

4

Last publish

Collaborators

  • tigerball890