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

light-api-mongo

v1.0.19

Published

this plugin of the light-api server for mongoDB service

Readme

light-api-mongo

2019-04-30 发布1.0.19

修复saveFileByUploadStream方法的err未定义的问题

2019-04-30 发布1.0.18

1.增加权限认证连接,连接配置如下

"auth":"username:password"

2019-01-19 发布1.0.17

1. 增加文件的流处理方法;

- 从GridFS的db中获取文件的可读流
sdb.eadFileByDownloadStream(fileId)

@param {*} fileId string :文件id
@return {*} Promise Object (GridFSBucketReadStream)
 

- 将可读流存储到从GridFS的db中

sdb.saveFileByUploadStream(readStream,metadata,filename);

@param {*} readStream stream :可读流
@param {*} metadata Object :文件元数据
@param {*} filename string :文件名
@return {*} Promise Object (GridFSBucketWriteStream)

2018-06-11 发布1.0.16

1. 增加自定义聚合方法

2018-06-06 发布1.0.15

1. mongodb聚合时增加排序参数

2018-05-27 发布1.0.14--淘宝同步失败

1. mongodb聚合时增加排序参数

2018-05-24 发布1.0.13

1. 插件支持mongodb聚合查询及聚合计数

2017-12-13 发布1.0.12

1. 插件支持mongodb副本集连接
2. 插件增加数据库用户密码配置
//副本集合配置
 "replicaSet":"light_dev",

//数据库用户密码配置
 "auth":"user:password",

2017-11-13 发布1.0.11

1. 解决插件初始是报错不支持auto_reconnect问题

2017-07-26 发布1.0.10

1. 退回1.0.8版兼容_id历史数据会有问题

2017-07-26 发布1.0.9

1. 修复API的_id的兼容

2017-07-25 发布1.0.8

1. 修复mongodb初始化问题
2. 修改fileDB不识别问题

2017-07-25 发布1.0.7

1. 修复otherDb权限控制问题

2017-07-25 发布1.0.6

1. 修改mongoDB原有Db连接为官方推荐的MongoClient连接
2. 新增poolSize配置
3. 新增fileDB文件数据库配置
4. 新增fileColPrefix GridFs文件存储的集合前缀配置
5.解决查询不能并发的问题

2017-07-19 发布1.0.5-release

1. 修复缺陷排序后查询一定条数api排序问题,
2. 修复书写错误问题

2017-07-17 发布1.0.4版本

1. 增加文件删除api
2. 增加获取文件元数据api
3. 增加分页查询api
4. 增加按照查询条件删除多个文档api
5. 增加查询文档总条数api
7. 增加排序后查询一定条数api