paratii-js
v0.2.6
Published
Paratii JS Library
Downloads
2
Maintainers
Readme
paratii.js
is the main entry point and abstraction layer to interact with Paratii, a decentralized platform for video distribution.
More information about the Paratii Project can be found on paratii.video, or in our blueprint. Join the discussion on gitter.
Installation
You can install paratii-js
from npmjs.org using:
npm install paratii-js
How to use it
Here is a code snippet which will upload a video to Paratii and transcode it:
// import the Paratii object
const Paratii = require('paratii-js')
// create a new instance of Paratii with default values
const paratii = new Paratii()
// where is your video?
const YOURVID = '/path/to/video.mp4'
// go and add the video
paratii.vids.uploadAndTranscode({
file: YOURVID,
title: 'Paratii for fun and profit'
})
We have more extensive documentation on https://docs.paratii.video
Contributing to paratii.js
Contributions are most welcome! Please read CONTRIBUTING.md
Deploying
Run the following commands:
$ git checkout master && git pull $ yarn version --new-version <patch|minor|major> $ git push --follow-tags
This will tell
CircleCI
to build and then publish a new versionx.x.x
to thenpm
registry