plagiarism-checker
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

Copyleaks NodeJs SDK

Copyleaks SDK enables you to scan text for plagiarism and detect content distribution online, using the Copyleaks plagiarism checker API.

Using Copyleaks SDK you can check for plagiarism in:

  • Online content and webpages
  • Local and cloud files (see supported files)
  • Free text
  • OCR (Optical Character Recognition) - scanning pictures with textual content (see supported files)

Installation

Install using npm.

npm i plagiarism-checker

Register and Get Your API Key

To use the Copyleaks API you need to first be a registered user. The registration to Copyleaks takes a minute and is free of charge. Signup and make sure to confirm your account.

As a signed user you can generate your personal API key. Do so on your dashboard home under 'API Access Credentials'.

For more information check out our API guide.

Usage

Javascript

const { Copyleaks } = require('plagiarism-checker');  
const copyleaks = new Copyleaks();
copyleaks.loginAsync(<your email>,<your api key>).then(res=> {...} , err=> {...});

Typescript

import { Copyleaks } from 'plagiarism-checker';  

export class MyClass{
    public copyleaks = new Copyleaks();
    public async getCopyleaksAuthTokenAsync(){
        try{
           return await this.copyleaks.loginAsync(<your email>,<your api key>); 
        }
        catch{
         ...   
        }
    }
}

Note

CopyleaksConfig.IDENTITY_SERVER_URI = "<your identity server uri>";
CopyleaksConfig.API_SERVER_URI = "<your api server uri>";

Demo

See index.js under demo folder for an example using javascript.

Read More

Readme

Keywords

Package Sidebar

Install

npm i plagiarism-checker

Weekly Downloads

324

Version

4.0.0

License

MIT

Unpacked Size

2.07 MB

Total Files

224

Last publish

Collaborators

  • safaama1
  • aihamaburafaa
  • bayan_copyleaks
  • yehonatanb