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 🙏

© 2025 – Pkg Stats / Ryan Hefner

rexine

v2.3.0

Published

a light javascript tool to encrypt the data

Readme

Rexine

A light js lib to get data from csv files

一个简单的获取 CSV 文件数据的 JavaScript 库。

采用 TypeScript 编写,类型支持良好

最新版本:V2.3.0

入门

适用于Rexine 2.0.0以上版本 此后版本移除了对 JSON 类型文件的异步支持

一个轻量的 CSV 文件数据处理库

Rexine是一个轻型的文件数据读取 JavaScript

对于一些内容可公开的数据库,Rexine可以让您摆脱后台的困扰,进行数据检索和展示操作

快速上手

Rexine 的操作十分简单,支持 CSV 格式,支持同步/异步操作,所有数据转变成二维数组

所有数据二维数组化是 Rexine 的设计思路,接下来我们模拟在浏览器中引入 Rexine 的操作方法

Rexine 对于所有由 EXCEL 导出的 CSV 文件,都可以直接以二维数组或 JSON 形式输出

安装模块

npm install rexine --save

也可以直接在浏览器内引入

<script type="text/javascript" src="/dist/bundle.js"></script>

基本教程

格式函数

Rexine提供了个可以直接调用的方法,可以在任何适合的场合进行格式转化的操作

csvToArray

csvToArray 方法接收一个 String 类型的量,该字符串需要符合 csv 格式,返回一个二维数组

arrayToJson

arrayToJson 方法接收一个二维数组,返回其json形式

jsonToArray

jsonToArray 方法接收一个 json 类型的量,返回一个二维数组

文件操作

fileReader

Rexine 提供了 fileReader 方法,接受一个 File 对象。

Rexine.fileReader(file, e => {}, true);

/*
 * file 是一个 File 类型的参数
 * e 指向获得的数据
 * 末参数判断是否自动执行,默认为 true
 */

fileDOMReader

Rexine 还提供了 fileDOMReader 方法,接受一个 input[type="file"] 的DOM 对象。

<input type="file" id="file" />
<script type="text/javascript">
	Rexine.fileDOMReader("#file", e => {}, true);

	/*
	 * e指向获得的数据
	 * 第三个参数若为true将自动执行read(data)
	 * 第三个参数默认为true
	 */
</script>