Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@metaverse-ese-test-example/node-sdk
Advanced tools
The MNet Node SDK is a JavaScript/TypeScript client that provides easy integration with the MNet API, enabling you to interact with various services like memes and spaces. The SDK uses `axios` for HTTP requests and provides built-in caching using `axios-c
The MNet Node SDK is a JavaScript/TypeScript client that provides easy integration with the MNet API, enabling you to interact with various services like memes and spaces. The SDK uses axios
for HTTP requests and provides built-in caching using axios-cache-interceptor
.
You can install the MNet Node SDK via npm:
npm install @metaverse-ese-test-example/node-sdk
or using yarn:
yarn add @metaverse-ese-test-example/node-sdk
You can import the MNetClient
class from the SDK and instantiate it with your API key and environment.
import { MNetClient } from '@metaverse-ese-test-example/node-sdk';
const client = new MNetClient({
apiKey: 'YOUR_API_KEY',
env: 'dev', // can be 'dev', 'staging', or 'prod'
});
You can also overwrite the API key by manually providing an authorization header in individual method calls. This is useful if you need to temporarily use a different key.
const memes = await client.memeService.getMemes({
headers: {
'Authorization': 'Bearer NEW_API_KEY'
}
});
console.log(memes);
The SDK provides several services to interact with the MNet platform.
The MemeService
allows you to interact with the meme-related endpoints. Below is an example of how to use it:
const memes = await client.memeService.getMemes();
console.log(memes);
The SpaceService
allows you to manage spaces:
const spaces = await client.spaceService.getSpaces();
console.log(spaces);
const userTokenData = {
externalUserId
externalProjectId
firstName
lastName
role
email
};
const encodeKey = {
keyId: "WBEw7pKn0TMCAYc7WDvdo",
privateKey: `-----BEGIN RSA PUBLIC KEY-----
MIICCgKCAgEAlnd5vGP/1bzcndN/yRD+ZTd6tuemxaJd+12bOZ2QCXcTM03AKSp3
NE5QMyIi13PXMg+z1uPowfivPJ4iVTMaW1U00O7JlUduGR0VrG0BCJlfEf852V71
TfE+2+EpMme9Yw6Gs/YAuOwgVwu3n/XF0il3FTIm1oY1a/MA79rv0RSscnIgCaYJ
e86LWm+H6753Si0MIId/ajIfYYIndN6qRIlPsgagdL+kljUSPEiIzmV0POxTltBo
tXL1t7Mu+meJrY85MXG5W8BS05+q6dJql7Cl0UbPK152ziakB+biMI/4hYlaOIBT
3KeOcz/Jg7Zv21Y0tbdrZ5osVrrNpFsCV7PGyQIUDVmmnCHrOEBS2XM5zOHzTxMl
JQh3Db318rB5415zuBTzrO+20++03kH4SwZEEBg1SDAInYwLOWldbTuZuD0Hx7P2
g4a3OqHHVOcAgtsHgmU7/zCgCIETg4KbRdpSsqOm/YJDWWoLDTwvKnH5QHSBacq1
kxbNAUSuLQESkfZq1Dw5+tdBDJr29bxjmiSggyittTYn1B3iHACNoe4zj9sMQQIf
j9mmntXsa/leIwBVspiEOHYZwJOe5+goSd8K1VIQJxC1DVBxB2eHxMvuo3eyJ0HE
DlebIeZy4zrE1LPgRic1kfdemyxvuN3iwZnPGiY79nL1ZNDM3M4ApSMCAwEAAQ==
-----END RSA PUBLIC KEY-----`
};
const token = createUserToken(userTokenData, encodeKey);
The SDK requires a few configuration parameters:
apiKey
: Your API key for accessing the MNet API.env
: The environment to be used. Available options are:
dev
: Development environmentstaging
: Staging environmentprod
: Production environmentThe SDK provides several npm scripts for development and building:
build
: Compiles the TypeScript code to JavaScript using tsup
.clean
: Cleans the build output and dependencies.dev
: Runs the build in watch mode for development purposes.dryrun
: Builds and packs the SDK for a dry run of the release.To build the SDK, run:
npm run build
This project is licensed under the MIT License. See the LICENSE file for details.
If you'd like to contribute, feel free to open a pull request or issue on the GitHub repository.
For any issues or questions, please contact support@mnet.com.
FAQs
The MNet Node SDK is a JavaScript/TypeScript client that provides easy integration with the MNet API, enabling you to interact with various services like memes and spaces. The SDK uses `axios` for HTTP requests and provides built-in caching using `axios-c
We found that @metaverse-ese-test-example/node-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.