
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@blackglory/bundle
Advanced tools
一种用于描述文档的目录结构, 受到TextBundle的启发.
与TextBundle的不同点:
npm install --save @blackglory/bundle
# or
yarn add @blackglory/bundle
一个典型的bundle目录结构如下:
.
├── assets
│ ├── foo.png
│ └── bar.png
├── meta.json
└── text.md
bundle目录下的其他文件和目录会被忽略, 从而允许在此存放临时文件, 系统文件和版本控制系统.
/bundle的根目录, 目录名称是随意的, 只需要便于人类识别.
/meta.{extension}bundle的元数据, 它是一种能够被解析为键值对字典的文件, 格式不受限制, 取决于具体实现.
如果meta文件不存在, 或meta文件存在多个, 则不会将此目录视作一个bundle.
/meta.{variant}.{extension}bundle元数据的变体.
相同变体名的meta文件只能存在一个, 否则将被视作无效变体.
/text.{extension}bundle的文本, 格式不受限制, 取决于具体实现.
如果text文件不存在, 或text文件存在多个, 则不会将此目录视作一个bundle.
/text.{variant}.{extension}bundle文本的变体.
相同变体名的text文件只能存在一个, 否则将被视作无效变体.
/assets/**/*.{extension}bundle的资源文件.
interface IBundle {
/**
* The path of the root directory.
*/
root: string
/**
* The path of the meta file, relative to the root directory.
*/
meta: string
/**
* The path of the text file, relative to the root directory.
*/
text: string
/**
* The paths of assets, relative to the root directory.
*/
assets: string[]
/**
* The variants.
*/
variants: Record<string, IBundleVariant>
}
interface IBundleVariant {
/**
* The path of the meta file variant, relative to the root directory.
*/
meta?: string
/**
* The path of the text file variant, relative to the root directory.
*/
text?: string
}
/**
* @throws {NotDirectoryError}
* @throws {NoMetaFileError}
* @throws {NoTextFileError}
* @throws {TooManyMetaFilesError}
* @throws {TooManyTextFilesError}
*/
function buildBundle(pathname: string): Promise<IBundle>
function isBundle(pathname: string): Promise<boolean>
function findAllBundles(pathname: string): AsyncIterable<IBundle>
FAQs
一种用于描述文档的目录结构, 受到[TextBundle]的启发.
We found that @blackglory/bundle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.