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",