npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cassiopeia-starlighter

v1.0.2

Published

A npm library that allows you to interact with Cassiopeia-Database in a quick and easy way.

Downloads

6

Readme

Cassiopeia-Starlighter

Description

cassiopeia-starlighter is an npm library designed to facilitate interaction with the Cassiopeia Database swiftly and effortlessly. It provides a set of tools for managing authentication, registration, file uploads, and downloads with the database.

cassiopeia-database does not have a website yet, and is currently in beta testing. As a reminder, this is a free file storage for any files up to 15mb. Please do not abuse the database. Use it only for its intended purpose. If your account is seen to be using the database in a dishonest or harmful way, it will be irretrievably deleted automatically.

Installation

Install cassiopeia-starlighter using npm:

npm install cassiopeia-starlighter

Usage

First, import the Cassiopeia class from the package:

import { Cassiopeia } from 'cassiopeia-starlighter';

Create an instance of Cassiopeia with your credentials:

const cassiopeia = new Cassiopeia('[email protected]', 'your_password');

Registering a New User

await cassiopeia.register();

Activating a User

await cassiopeia.activate('activation_code_from_email');

Updating Tokens

await cassiopeia.updateTokens();

Uploading Files

const fileBuffer = Buffer.from('your_file_data'); // or you can read file via fs
const filename = 'your_file_name.ext';
const isPublic = false; // or true for public files
const uploadResponse = await cassiopeia.upload(fileBuffer, filename, isPublic);

Downloading Files

const uuid = 'your_file_uuid';
const fileBuffer = await cassiopeia.download(uuid);

or

const uuid = 'your_file_uuid';
const fileBuffer = await cassiopeia.downloadPublic(uuid);

for public files

API Reference

Refer to the API documentation for detailed information on all the methods available.

Contributing

Contributions are welcome! Please refer to the repository’s issues page for the contribution guidelines.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Author

002love Acknowledgments Thanks to all the contributors who invest their time into making cassiopeia-starlighter better.

Support

If you encounter any issues or require assistance, please open an issue on the GitHub repository.

Remember to replace placeholder texts like `[email protected]`, `your_password`, `activation_code`, `your_file_data`, `your_file_name.ext`, and `your_file_uuid` with actual values when implementing the code.

Feel free to customize this README to better fit the style and requirements of your project. Happy coding! 🌟