npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

readmeq

v1.3.0

Published

Just another one solution for modifying your README.md (not only) file

Readme

readmeq

Just another one solution for modifying your README.md (not only) file.

Can be useful if you want to modify some parts of your README.md (not only) file on any step of build, commit, pre-comit, etc.

Usage:

  1. put some sections to any place of your README.md file like this:
<!--READMEQ:someKey-->someData<!--/READMEQ:someKey-->

or like this:

<!--READMEQ:someKey-->
any **data** _between_
and <a href="https://kostix.dev">anything</a> else
<!--/READMEQ:someKey-->
  1. use modifyReadmeqSingle method like this:
await modifyReadmeqSingle('someKey', 'someOtherData(MODIFIED)', { n : true });
  1. the result in your file will be:
<!--READMEQ:someKey-->
someOtherData(MODIFIED)
<!--/READMEQ:someKey-->

Documantation:

Check documentation here

Type Aliases

Functions

Type Aliases

BackupOptions

Ƭ BackupOptions: Object

Backup options.

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | backupSuffix | string | backup file suffix (file.ext => file${backupSuffix}.ext) Default _backup${Date.now()} | | backupSuffixMatch | string | backup file suffing pattern (RegEx), where ([0-9]+) - uniq time-based integer (!important) id of its backup version Default _backup([0-9]+) | | backupsPath | string | projects base/root path Default ${path.join(basePath,'.readmeqBackups')} | | basePath | string | projects base/root path Default ${process.cwd()} |

Defined in

index.ts:17


FilePath

Ƭ FilePath: string

filePath data type (string)

Defined in

index.ts:96


ModifyOptions

Ƭ ModifyOptions: Object

Modify options.

Type declaration

| Name | Type | Description | | :------ | :------ | :------ | | backup | boolean | apply backupReadmeq method mefore modifying Default ts false | | backupOptions | BackupOptions | applying to backupReadmeq method if backup=true Default ts backupOptions | | filePath | string | path to modified file Default ts './README.md' | | n | boolean | insert newData from new line (\n on start/end) Default ts false | | sectionEnd | string | section end pattern, where KEY_NAME (!important) - your section key Default ts '<!--/READMEQ:KEY_VALUE-->' | | sectionStart | string | section start pattern, where KEY_NAME (!important) - your section key Default ts '<!--READMEQ:KEY_VALUE-->' |

Defined in

index.ts:51


Result

Ƭ Result<T>: { status: "ok" ; value: T } | { error: Error ; status: "error" }

Result to return

Type parameters

| Name | Description | | :------ | :------ | | T | value type of status: 'ok' |

Defined in

index.ts:102

Functions

backupReadmeq

backupReadmeq(filePath, options?): Promise<Result<string>>

Backup readmeq modified file. Use this method when its important to have previous versions of modified file. Or any other cases when its needed. Use this method on your own risk.

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | filePath | string | path to file | | options? | Partial<BackupOptions> | - |

Returns

Promise<Result<string>>

backup file path (or throw some error)

Async

Defined in

index.ts:194


modifyReadmeqSingle

modifyReadmeqSingle(key, newData, options?): Promise<Result<boolean>>

Modify single key section.

Parameters

| Name | Type | Description | | :------ | :------ | :------ | | key | string | section key | | newData | string | section data | | options? | Partial<ModifyOptions> | - |

Returns

Promise<Result<boolean>>

file modified (or throw some error)

Async

Defined in

index.ts:124


restoreReadmeqFromPath

restoreReadmeqFromPath(filePath, backupFilePath, backupBeforeRestore?, options?): Promise<Result<boolean>>

Restore version of readmeq modified file from specific path. Use this method on your own risk.

Parameters

| Name | Type | Default value | Description | | :------ | :------ | :------ | :------ | | filePath | string | undefined | path to file | | backupFilePath | string | undefined | path to its backup file | | backupBeforeRestore | boolean | true | - | | options? | Partial<BackupOptions> | undefined | - |

Returns

Promise<Result<boolean>>

file restored (or throw some error)

Async

Defined in

index.ts:329


restoreReadmeqLatest

restoreReadmeqLatest(filePath, backupBeforeRestore?, options?): Promise<Result<boolean>>

Restore latest version of readmeq modified file. Based on its backup suffix. Use this method on your own risk.

Parameters

| Name | Type | Default value | Description | | :------ | :------ | :------ | :------ | | filePath | string | undefined | path to file | | backupBeforeRestore | boolean | true | - | | options? | Partial<BackupOptions> | undefined | - |

Returns

Promise<Result<boolean>>

file restored (or throw some error)

Async

Defined in

index.ts:244

TODO:

  • [ ] mk mass modifying
  • [ ] move backup/restore to separate module

© kostix.dev