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 🙏

© 2024 – Pkg Stats / Ryan Hefner

nlts

v1.0.3

Published

CommandLine Tool for Node LTS

Downloads

13

Readme

L0-R5-T000076

项目编号:
  L0-R5-T000076
项目名称:
  LTS 查看工具
项目说明:
  实现 Node.js 历代 LTS 版本维护情况
项目技术栈说明:
  Node.js + axios「学习  HTTP 网络请求收发」

LTS 查看工具

知识点

  1. axios发送HTTP网路请求
const axios = require('axios');
async function query(url) {
    const { data } = await axios.get(url);
    console.log(data);
}
const url = 'https://www.baidu.com/';
query(url);
  1. 解析process.argv process.argv.slice(2)后为node xx.js 后面的参数
console.log(process.argv.slice(2));

/************* console.log **********/

node bin/nlts.js 12.15 -l
['12.15', '-l']
  1. 主逻辑
  • 获取所有的Node 版本
  • 把目标版本的 LTS 都挑选出来
  • 过滤字段
  • 建立表格

Npm 发布流程

npm login
npm publish

实际运行结果

  1. $ nlts -h $ nlts -V

  2. $ nlts 11.2 $ nlts -l 11.2

版本信息

1.0.0

  • 实现 Node.js 历代 LTS 版本维护情况

1.0.1

  • 添加解析version为任意版本号,即可以缩小版本范围$ nlts 12.5

1.0.2

  • 添加本地数据,由于获取网络慢 $ nlts 12.5 -l直接访问本地数据。
  • 使用commander重新构建

1.0.3

  • 修改bug,axios result 数据格式错误