Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

life-helper-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

life-helper-config

「我的个人助手」项目的配置文件

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

life-helper-config

「我的个人助手」项目的配置文件

说明

当前项目为「我的个人助手」项目的配置文件,但实际上本项目除了对笔者有用外,对其他开发者无任何实际用途,当你看到本文档后,只需要将当前依赖(life-helper-config)删除即可,对项目没有任何影响。(当然你也可以参照笔者的方式进行部署)

用途

由于笔者将自己的生产项目「我的个人助手」(https://github.com/inlym/life-helper-backend)开源了,开放源代码供 Node.js 初学者学习。很显然,配置文件是不能让其他人获取到的,当前项目的用途就是用于保证项目代码开源,资源配置文件保密的用途。

怎么使用

项目使用了 Egg.js(https://eggjs.org/) 框架,配置文件均放置在 /config/ 目录下,除 config.default.jsplugin.js 文件开放外,其他文件均需要保密。(图片为项目完整文件解构)

笔者考虑到的方法时,将配置文件以依赖文件的形式进行保存,并将配置文件项目仅存在放内部私有的 npm 库中,这样可以保证其他人获取不到该项目。

FAQs

Package last updated on 29 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts