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

les-ol

v1.0.3

Published

les ol api

Readme

les-ol

les-ol 是基于ol 6.4.3 的二次开发产品,旨在集成常见的功能模块,包括测量、标绘、气象、低空等方面,使得项目开发更加便捷高效。

Get started

* npm & yarn

npm install ol
npm install les-ol
import * as ol from 'ol';
import * as LesOl from 'les-ol';

打包说明

* 打包源码至 LesOl.js

执行以下命令,完成后会自动生成Build文件夹,及打包文件

npm run build

* 打包API文档

执行以下命令,完成后会自动生成documents文件夹,浏览器打开index.html即可查看

npm run build:doc

发布说明

* 安装nrm

//全局安装nrm
npm i nrm -g
//npm源列表
nrm ls
//切换npm源
nrm use npm

* 登录npm

npm login

查看登录情况,如果出现用户名就说明登录成功了

mpm whoami

* 查询包是否可发

如果查不到该包名,报错,就说明没有这个包名,代表可以发布

npm view 包名

* 更改版本号

npm version xxx   // 自动更改版本号,并且commit
npm version patch // 控制台会返回下一个小版本号 如v1.0.1
npm version minor // minor:次版本号,增加新功能,如 v1.0.0->v1.1.0
npm version major // major:主版本号,不兼容的修改,如 v1.0.0->v2.0.0

* 发布

npm publish

package.json配置说明

main

是最为基础且古老的入口字段,由 Nodenpm 定义。当 main 字段都不存在时,通常会使用 index.js 作为入口。

"main": "./Build/LesOl.js",