New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

haoycn-library

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haoycn-library

store and require tiny modules

  • 0.4.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

用于获取小型通用文件夹内的文件地址索引。

将文件夹放在此模块的 ./library 文件夹中(即同本文档同目录下),使用时候只需以文件夹名称为参数实例化一个类,通过一些方法快速访问这些文件夹内的文件地址。

###lib.all()###

返回文件夹内所有文件的绝对地址数组。

###lib.get(param1[, param2]*)###

支持多参数。参数一般来说为文件名即可,不需要写出很长的相对路径,系统将自动匹配。

返回一个数组,数组包含了文件的绝对地址。

###lib.use(name)###

参数 name 是 js 文件名称,将返回该 js 模块的结果。

###lib.cwd()###

返回文件夹绝对路径。

Keywords

FAQs

Package last updated on 11 Jan 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc