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

@ikalasdev/ikalas

v1.0.11

Published

The Official Ikalas Node.js API Library

Downloads

6

Readme

Official Ikalas Node.js API Library

Official package to interact with the Ikalas API https://ikalas.com/app/documentation

Installation

  1. This is a Node.js module available through the npm registry. If this is a brand new project, make sure to create a package.json first with the npm init command.

  2. Install the module using

npm install @ikalasdev/ikalas

Examples

const ikalas = require('@ikalasdev/ikalas')
ikalas.setApiKey('YOUR_API_KEY');

await ikalas.execute("batch-wallet-generator", {numberOfWallets: 1});

// returns
// [
//   {
//     "Public key": "0x7493C69D5f8F04dD0BD8D243fbdBC9769D70C0Cc"
//     "Private key": "0xa8e25e8bc566f1cf01f59a11aa01d7f0f68722cd72789ac0f60a8aae0f7cdb2d"
//   }
// ]
await ikalas.execute("generate-random-emails", {count:5});

// returns
// [email protected]
// [email protected]
// [email protected]
// [email protected]
// [email protected]
await ikalas.execute("generate-qrcode", { qrCodeData: "ikalas" });

// returns
// [
//     {
//       outputFileId: '393ec9c1-05e8-4aa4-bced-df09a9d5362e',
//       outputFileName: 'qrcode-636480ed-f04b-4330-9ef1-b14ba0e516d8.png',
//       outputFileExtension: 'png',
//       outputFileHasPreview: true,
//       outputFileIsImage: true,
//       outputFileUrl: 'https://storage.googleapis.com/ikalas-public/aa26a3f4-b529-4a8e-88d4-50d848e15f23.png'
//     }
// ]
await ikalas.execute("bep20-faucet", { walletAddress: "YOUR_WALLET_ADDRESS"});

// returns
// generate wallets Success ! 10000 KIKF were sent to your wallet. Transaction hash: 0x1a88880cfe8357509565094c55f0ad65ff1c9b49b84dc6a58b85d4f7f0ec398b
await ikalas.execute("json-to-csv", { jsonString: '{"id":1,"str":"test"}'});

// returns
// id,str
// 1,test
const stream = fs.createReadStream("path/to/file1.json")
const stream2 = fs.createReadStream("path/to/file2.json")
await ikalas.execute("json-to-csv-file", { files: [stream, stream2]})

// returns
// [
//     {
//       outputFileId: '37421539-41fa-4b35-a2d6-fa012b4ed562',
//       outputFileName: 'data.csv',
//       outputFileExtension: 'csv',
//       outputFileUrl: 'https://storage.googleapis.com/ikalas-public/9ce74909-d00f-4c5f-80b1-ae87d02bf505.csv'
//     },
//     {
//       outputFileId: 'd051dfd7-21cb-4f1f-b688-ed09521c6386',
//       outputFileName: 'data2.csv',
//       outputFileExtension: 'csv',
//       outputFileUrl: 'https://storage.googleapis.com/ikalas-public/6c8b97b3-bb57-4b28-a7ba-383e7ab0ddc2.csv'
//     }
// ]
const stream = fs.createReadStream("path/to/file1.json")
const stream2 = fs.createReadStream("path/to/file2.json")
await ikalas.execute("convert-json-file-to-yaml-file", { files: [stream, stream2]})

// returns
// [
//     {
//       outputFileId: 'b0cd1dd7-04e9-4a1c-882d-36d3270b9271',
//       outputFileName: 'data.yaml',
//       outputFileExtension: 'yaml',
//       outputFileUrl: 'https://storage.googleapis.com/ikalas-public/ade94b28-7d45-4654-be46-99de00ffed71.yaml'
//     },
//     {
//       outputFileId: 'f7b05d65-2cb6-4f64-b25d-0ea1b025a69f',
//       outputFileName: 'data2.yaml',
//       outputFileExtension: 'yaml',
//       outputFileUrl: 'https://storage.googleapis.com/ikalas-public/20ae14d7-f2cf-48fe-bda9-7896bbf7a17e.yaml'
//     }
// ]
await ikalas.execute("csv-to-json", { csvString: '"ourselves","fly","ring"\n"putting","running","catch"\n"afternoon","full","research"\n' });

// returns
// [
//     { ourselves: 'putting', fly: 'running', ring: 'catch' },
//     { ourselves: 'afternoon', fly: 'full', ring: 'research' }
// ]

Data

To create or update data in the Ikalas website use the set method by passing a key and a value for that data as parameters.

The set method returns the id of the data when created or updated succesfuly.

await ikalas.set("myEmail", "[email protected]"); 

To retrieve an already created data use the get method by passing the key as a parameter.

await ikalas.get("myEmail");

// Expected output
// [email protected]

Check the api documentation here