🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@yino/core

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yino/core

Yino is a **ultimate workflow** for building solid projects in a more smart & effective way **All In JS**. And this package (Yino Core) is a client running in browser that supports a bunch of features, currently contains:

npmnpm
Version
0.0.7
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Yino Core

Yino is a ultimate workflow for building solid projects in a more smart & effective way All In JS. And this package (Yino Core) is a client running in browser that supports a bunch of features, currently contains:

  • Lambda: invoke remote functions(just like calling local async functions)
  • Event: send events to analyse app usage
  • Storage: upload & persist files remotely

Install

npm i @yino/core -S

You can instantiate Yino client this way:

import Yino from '@yino/core';

const y = new Yino({ id: 8851 });

And then enjoy the magic of the y!

Invoke Remote Function

const res = await y.invoke('fetchFeed', { offset });
// make use of res...

As you can see, calling remote functions just as simple as calling local functions, once you have declared functions in Yino Lambda, you can just call it immediately.

Send Event

y.log('launch', { duration });

Once you have declared the event name & params, there's nothing to worry about, sending event is direct and intuitive.

Upload File

const { url } = await y.upload(file);
// make use of url

FAQs

Package last updated on 07 Oct 2020

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