New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

profiles.js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

profiles.js

RESTful Node.js API Wrapper to interact with the WebProfiles API

unpublished
latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

profiles.js


RESTful Node.js API Wrapper to interact with the WebProfiles API



NPM version

NPM downloads

Dependencies

Repository view count


npm installnfo

Usage

Add the package

To start, you will need to install the package. To do that, simply run npm i profiles.js. In your code, add the following:

const Profiles = require("profiles.js");
const profiles = new Profiles({
  api_key: "your-user-key-here",
});

To fetch your user token, run the following in the browser console:

const value = `; ${document.cookie}`;
const parts = value.split(`; pass=`);
if (parts.length === 2) parts.pop().split(";").shift();

Now you can use any of the functions below!

GET WebProfiles Statistics

profiles.stats().then((result) => console.log(result));

GET User Information

profiles.fetchUser(id, type).then((result) => console.log(result));

id is the user id/username, type is the type of id provided (id or username).

GET Search Results

profiles.search(query).then((result) => console.log(result));

query is the text to search for.

GET User Token Data

profiles.validateToken(token).then((result) => console.log(result));

token is the token to validate.

Editing a Profile

PUT Edit Bio

profiles.editBio(bio).then((result) => console.log(result));

bio is the new bio to set.

Keywords

webprofiles

FAQs

Package last updated on 12 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts