Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A simple API Wrapper around the Byte.co app. Single dependancy, utilizing node-fetch as the http client.
A simple API Wrapper around the Byte.co app. Single dependancy, utilizing node-fetch as the http client.
if you use npm,
npm install byte-api
if you use yarn,
yarn add byte-api
All methods that interact with your user account (Most that query the api) require you to be authorized or logged in first, as shown below.
const Byte = require("byte-api");
const Client = new Byte.Client("YourAuthorizationToken");
Client.setProfileColor(1) // Sets the user's profile color
.then((res) => {
console.log(res);
})
Client.setBio("Just a random Bio") // Changes your BIO.
.then((res) => {
console.log(res);
})
There are some exceptions though, they're accessed in a different way.
const Byte = require("byte-api");
Byte.Isolated.checkName("potato") // Checks a usernames avability without the need for authorization.
.then((res) => console.log(res))
You can get a token by sniffing the http traffic of the app. in every request, there will be a header saying "Authorization: Token", copy that token and use it to logon. To do this, I used HttpCanary (From the Android App Store) and Nox App Player.
I'd love for people to help out!
I have no standards for accepting PRs or issues. Have a neat idea? impliment it and send it over, and if it works well I'll approve. Though I might reformat it to fit the style of the rest of the repository.
If you're better at Javascript then me, feel free to make corrections or tell me how I can do something better!
FAQs
Byte-API
The npm package byte-api receives a total of 3 weekly downloads. As such, byte-api popularity was classified as not popular.
We found that byte-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.