Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rassets

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rassets

A simple Typescript wrapper to upload assets.

  • 1.2.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

RAssets

A simple Typescript wrapper to upload assets. See test/index.ts for examples.

getCSRF

This function allows you to get the CSRF token for a specific cookie.

await RAssets.getCSRF("cookie")

getRequestVerificationToken

This function allows you to get the __RequestVerificationToken for a specific cookie

await RAssets.getRequestVerificationToken("cookie")

uploadAudio

This function allows you to upload an audio

const uploadAudio = await RAssets.uploadAudio(cookie, {
    name: "test",
    file: testAudio.toString("base64"),
    paymentSource: "User"
})

upload

This function allows you to upload any asset (working) using the "hidden" api endpoint - http://data.roblox.com/Data/Upload.ashx. If you specify an assetid that you own, you may even overwrite that asset

const uploadAsset = await RAssets.upload(cookie, {
    file: testModel,
    assetType: "Model",
    name: "test",
    description: "test",
    ispublic: true,
    allowcomments: true
})

FAQs

Package last updated on 26 Jun 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc