From c6167ee319baa250b49b05dd99a7b8598d1d775c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Sun, 11 Dec 2016 00:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=85=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmignore | 4 ++++ README.md | 17 +++++++++++++++++ package.json | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000000..f937237a9b --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +build/ +node_modules/ +.deploy +template/ diff --git a/README.md b/README.md index c93aa52741..0999758357 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Linux Command - [设备管理](#设备管理) Device Commands - [电子邮件与新闻组](#电子邮件与新闻组) - [其他命令](#其他命令) Misc Commands +- [Node调用](#node调用) - [Linux学习资源整理](#linux学习资源整理) - [社区网站](#社区网站) @@ -28,6 +29,7 @@ Linux Command - [软件工具](#软件工具) - [中国开源镜像站点](#中国开源镜像站点) + ## Linux命令分类 *这里存放Linux 命令大全并不全,你可以通过[linux-command](https://jaywcjlove.github.io/linux-command/)来搜索,它是把 [command](./command) 目录里面搜集的命令,生成了静态HTML并提供预览以及索引搜索。* @@ -80,8 +82,23 @@ archive、ctlinnd、elm、getlist、inncheck、mail、mailconf、mailq、message yes +### Node调用 + +``` +npm install linux-command +``` + + +```js +var comm = require("linux-command") +console.log("---->",comm.ls) + +``` + + ## Linux学习资源整理 + ### 社区网站 - [Linux中国](https://linux.cn/) - 各种资讯、文章、技术 diff --git a/package.json b/package.json index 56a87601f7..965609652a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "linux-command", "version": "1.0.0", "description": "Linux Command", - "main": "dist/data.js", + "main": "dist/data.json", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node build/compile.js",