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

lxtac-kits

v1.0.42

Published

This package just some functions for myself,so have no docmentation for you.And I include this package in YuDoCity first,Welcome to add issues at Github.

Readme

LXTAC Tools

  • 最新版本 v1.0.17
  • 作者 吕志远
  • 作者博客 https://note.lxtac.com/

**注意:**请及时使用npm update命令更新模块文件,该插件模块会持续的经常的更新新功能,并关注GitHub动态.您可以在Issues中进行反馈,或者到作者博客 *https://note.lxtac.com/*中进行反馈,作者会第一时间进行反馈.

安装

1.用NPM安装扩展: npm install lxtac-kits

2.引入扩展: import lxtac from 'lxtac-kits'; // LXTAC Plugin;

3.使用扩展: lxtac.getRequest().id // Get ID from URL;

4.开始使用... ...

文档

1.方法getRequest() - 获取URL链接中传递的参数:

该方法获取 Get 方式传递的明文 URL 参数(自动解码),例如:

// URL: https://www.lxtac.com?id=13&name=john
<script>
    import lxtac from 'lxtac-kits'; // LXTAC Plugin;
    let request = lxtac.getRequest();
    let id = request.id;
    let name = request.name;
</script>

2.方法setBack() - 设置返回按钮的 URL 链接:

该方法可用于修改上一个历史链接记录,用于返回按钮和回退按钮,适用于浏览器及移动端,例如:

<script>
    import lxtac from 'lxtac-kits';    // LXTAC Plugin;
    lxtac.setBack('https://www.lxtac.com/');    // 此时点击返回按钮则跳转至 https://www.lxtac.com/ ;
</script>

3.方法getObjectURL - 获取图片文件 URL (base64编码):

该方法可以将 input 中的 img 文件转变成本地预览的 base64 编码地址,例如:

<input type="image" accept="image/*" name="img" class="img" id="img"/>
<script>
    import lxtac from 'lxtac-kits';    // LXTAC Plugin;
    let img = $('#img');
    let img_t = lxtac.getObjectURL(img.files[0]);   // img_t 可用于预览的 img 标签 url 使用;
</script>

4.方法getCityArray()getWeUICities - 获取中国全部省市数组:

该方法获取中国所有城市数组,用于联动选择定位等场景,默认格式适用于 WEUI 的 Picker 组件,示例如下:

<script>
    import lxtac from 'lxtac-kits';    // LXTAC Plugin;
    console.log(getCityArray());    // 城市数组输出;
</script>

新1.0.20版本中和之后的版本会用 getWeUICities 方法, getCityArray 方法趋于淘汰,getWeUICities 方法可以细化到市区,而 getCityArray 方法只能细化到市级;