Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

haoycn-library

store and require tiny modules

0.4.2
unpublished
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

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

###lib.all()###

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

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

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

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

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

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

###lib.cwd()###

返回文件夹绝对路径。

Keywords

library

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.