0.0.1 • Published 3 years ago

@xesam/next v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

next.js

install

    npm install @xesam/next

usage

    const app = next().use(data => {
            data.friends.push('Java');
            return data;
        }).use(data => {
            return new Promise(resolve => {
                setTimeout(function () {
                    data.friends.push('Python');
                    resolve(data);
                }, 1000);
            });
        });
        app({
            friends: []
        }).then(res => {
            console.log(res);// {friends: ['Java', 'Python']}
        });