All notable changes to this project will be documented in this file.
- FULL MODULE REWRITED!
- Module now using
class
insteadfunction
Now you need write code be like:
const { Shorter, Info } = require("./index.js");
const shrt = new Shorter("example.com");
const info = new Info("example");
- Now all shorter methods at one method.
// OLD
scode.short({ url })
scode.custom({ url, code })
scode.emoji({ url })
scode.pass({ url, pass })
// NEW
shrt.short({ pass, emoji, code })
- Info method gets small improvement.
// OLD
scode.info({ code })
// NEW
info = new Info(code);
return await info
You still can download old version of module. Just type in console npm install [email protected]
CHANGELOGS.md and METHODS.md
Methods has been shorted.
// OLD
shrtcode.shorten(link)
shrtcode.customShorten(link, code)
shrtcode.emojiCode(link)
shrtcode.passShort(link, pass)
// NEW
scode.short({ url })
scode.custom({ url, code })
scode.emoji({ url })
scode.pass({ url, pass })
README.md has beed shorted.
Typings.
New methods!
shrtcode.customShorten(link, code)
shrtcode.emojiCode(link)
shrtcode.passShort(link, pass)
Fixed README.md
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.