0.0.6 • Published 4 years ago

sniplink.js v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

  1. Clone this repo
git clone https://github.com/harshhhdev/sniplink.js.git
  1. Install dependencies
yarn
  1. Start the development environment
# npm run watch
# starts TypeScript watch
yarn watch

# npm run dev
# starts nodemon
yarn dev
0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago