0.0.6 • Published 4 years ago
sniplink.js v0.0.6
Usage
/link 📎
🔗 Creating a snipped link
import * as sniplink from 'sniplink.js'
// Put dates in Unix timestamp format
new sniplink.CreateSnippedLink(1618536464, 'https://google.com/')
.createSnippedLink()
.then((res) => console.log(res))
.catch((err) => console.log(err))
🖇️ Getting a snipped link
import * as sniplink from 'sniplink.js'
new sniplink.GetSnippedLink('jvX')
.getLink()
.then((res) => console.log(res))
.catch((err) => console.log(err))
🚀 Building
- Clone this repo
git clone https://github.com/harshhhdev/sniplink.js.git
- Install dependencies
yarn
- Start the development environment
# npm run watch
# starts TypeScript watch
yarn watch
# npm run dev
# starts nodemon
yarn dev