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 🙏

© 2026 – Pkg Stats / Ryan Hefner

enos-app-portal-login

v0.0.9

Published

App portal login sdk

Downloads

13

Readme

ENOS-APP-PORTAL 登录定制页 SDK

change log

V0.0.8

  • 修改readme文件
  • init 添加目标应用接口

Installation

基于 NPM,发布于内网镜像上,安装方式如下

yarn add enos-app-portal-login

或者

npm install enos-app-portal-login

安装依赖

npm install [email protected] [email protected]

API

引入相应模块。

import appPortalLogin from 'enos-app-portal-login';

初始化(可选)

初始化操作,可以设置当前的登录页面 URL 是什么,便于之后登出回到这个页面

appPortalLogin.init({
   loginUrl: '/xxx.xxx', // 可选, 默认当前路径
   locale: '' // 可选,默认当前浏览器语言
   targetAppId: 'appId' // 目标应用的ID,默认为空
});

登录

appPortalLogin.login({
    "account": "XXXXX"  // 用户输入的账号
    "password": "*****" //  用户输入的密码
    "autoRedirect": true / false // 登录成功之后是否自动重定向到app-portal页面, 默认是
}).then((data) => {
   // data 是用户信息, 如果autoRedirect为true,则不会进入此方法
});

获取语言

获取当前语言

appPortalLogin.getLocale(); // en-US zh-CN

设置语言

设置当前语言

appPortalLogin.setLocale('en-US'); // en-US or zh-CN

忘记密码

跳转到忘记密码页面,进入 app-portal 页面

appPortalLogin.forgetPassword();