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

ke-cms

v1.18.4

Published

Kmrweb.net Contents Management System Library

Downloads

21

Readme

Classes

Functions

Cms

Kind: global class

new Cms()

オブジェクトコンストラクション

server(fn, op) ⇒ Void

サーバー起動

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | fn | function | RESTインターフェイス処理 | | op | Object | 起動オプション |

setting(op) ⇒ Object

実行オプションのセット(省略値解釈)

Kind: global function
Returns: Object - 編集後オプションオブジェクト

| Param | Type | Description | | --- | --- | --- | | op | Object | オプションオブジェクト |

sessionIn(req, res, op) ⇒ Void

セッションイン時の処理・クッキー情報など

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | req | Object | http request インターフェイス | | res | Object | http response インターフェイス | | op | Object | 実行オプション |

analyzeRequest(req) ⇒ Void

リクエストストリング(URI)の解析・分解

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | req | Object | httpリクエストインターフェイス |

getCookies(req) ⇒ Array

ウッキー情報の取り出し

Kind: global function
Returns: Array - クッキーストリング配列

| Param | Type | Description | | --- | --- | --- | | req | Object | http リクエストインターフェイス |

setCookies(key, value)

クッキーインタフェイスへのセット

Kind: global function

| Param | Type | Description | | --- | --- | --- | | key | String | クッキーキー | | value | String | クッキー値 |

valCookies(key) ⇒ String

クッキー血の参照

Kind: global function
Returns: String - 参照値

| Param | Type | Description | | --- | --- | --- | | key | String | クッキーキー |

putCookies() ⇒ String

出力用クッキーストリングの編集

Kind: global function
Returns: String - 出力用クッキーストリング

ctype(mdf) ⇒ String

コンテンツタイプを拡張子から編集

Kind: global function
Returns: String - コンテンツタイプ

| Param | Type | Description | | --- | --- | --- | | mdf | String | 拡張子 |

putFile(res, base) ⇒ Void

単純なファイル転送手続き

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | res | Object | httpレスポンスインターフェイス | | base | Steing | 基準フォルダ |

genFileCss(res, base) ⇒ Void

jcssファイルを併合して出力

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | res | Object | responseオブジェクト | | base | String | 基底パス |

putExpand(res, base) ⇒ Void

パラメータ展開による出力(CSSなど)

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | res | Object | httpレスポンスインターフェイス | | base | string | 基本ホルダ |

putEscape(res, base) ⇒ Void

ソースデータ用の「<>」などのエスケープ出力

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | res | Object | httpレスポンスインターフェイス | | base | String | 基本フォルダ |

sendConfig(res) ⇒ Void

コンフィグ情報(INFOJ)を送信

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | res | Object | httpレスポンスインターフェイス |

debugSetdate(res, op) ⇒ Void

タイムシフト再生

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | res | Object | httpレスポンスオブジェクト | | op | Object | 実行オプション |

putHtml(url, base, res) ⇒ Void

通常のCMS展開出力

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | url | String | 指定URL | | base | string | 基本フォルダ | | res | Object | httpレスポンスオブジェクト |

getInfoj(base) ⇒ Void

INFOJテーブルを作成

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | base | String | 基本フォルダ |

pageinfo(fname, base) ⇒ Void

ページ定義ファイルの読み込み

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | fname | String | ファイル名 | | base | String | 基本フォルダ |

layer(lines) ⇒ Void

階層化対応

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | lines | Array | 階層データ |

expand(buf, base, dt) ⇒ String

HTMLへの挿入と展開

Kind: global function
Returns: String - HTML文

| Param | Type | Description | | --- | --- | --- | | buf | String | バッファデータ | | base | String | 基本フォルダ | | dt | Object | 展開用変数データ |

appendScript($) ⇒ Object

スクリプトタグの追加(Jquery,Google,responsive)

Kind: global function
Returns: Object - 編集後オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | Jqueryオブジェクト |

devPage($, dt) ⇒ Object

Attr[cms-page]を展開

Kind: global function
Returns: Object - 編集後オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | Jqueryオブジェクト | | dt | Object | 展開変数 |

escape(x, force) ⇒ String

HTML文字をエスケープ

Kind: global function
Returns: String - 結果文字列

| Param | Type | Description | | --- | --- | --- | | x | String | 対象文字列 | | force | Boolean | 奇数、偶数行クラスを編集するtrue/false |

devInclude($) ⇒ Object

Attr[cms-include]を展開

Kind: global function
Returns: Object - 展開結果オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | Jqueryオブジェクト |

devParts($) ⇒ Object

Attr[cms-parts]を展開

Kind: global function
Returns: Object - 展開結果オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | Jqueryオブジェクト |

devFrame($) ⇒ Object

Attr[cms-frame]を展開

Kind: global function
Returns: Object - 展開後結果オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | 編集対象Jqueryオブジェクト |

devBlock($) ⇒ Object

Attr[cms-block]を展開

Kind: global function
Returns: Object - 展開後オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | 対象Jqueryオブジェクト |

devCss($) ⇒ Object

Attr[cms-css]を展開

Kind: global function
Returns: Object - 展開結果オブジェクト

| Param | Type | Description | | --- | --- | --- | | $ | Object | 対象Jqueryオブジェクト |

debugInfo() ⇒ Object

デバッグ情報をページに追加

Kind: global function
Returns: Object - 展開結果オブジェクト
Parm: Object $ 展開対象Jqueryオブジェクト

pankuzu() ⇒ String

パンくずパーツ生成

Kind: global function
Returns: String - パンくずパーツHTML

navbar() ⇒ String

ナビゲーションパーツ生成

Kind: global function
Returns: String - ナビゲーションパーツHTMLテキスト

sidemenu() ⇒ String

サイドメニューパーツ生成

Kind: global function
Returns: String - サイドメニューHTMLテキスト

foot() ⇒ String

フッターパーツ

Kind: global function
Returns: String - フッター用HTMLストリング

guide() ⇒ String

ページ内ガードパーツ生成

Kind: global function
Returns: String - 結果HTMLテキスト

menu() ⇒ string

グループ内メニューパーツ生成

Kind: global function
Returns: string - 結果HTMLテキスト

history() ⇒ string

更新履歴パーツ生成

Kind: global function
Returns: string - 結果HTMLテキスト

develop2(fname, dt, tp, ix) ⇒ String

2段階構造展開パーツ生成

Kind: global function
Returns: String - 生成結果HTMLテキスト

| Param | Type | Description | | --- | --- | --- | | fname | String | テンプレートファイル名 | | dt | Object | 変数テーブル | | tp | String | タイプside/top2 | | ix | Integer | データインデックス |

selection(type, grp) ⇒ Array

メニューデータをパターン選択

Kind: global function
Returns: Array - メニューオブジェクト配列

| Param | Type | Description | | --- | --- | --- | | type | String | パターン top/top2/2nd/sibling/side | | grp | String | グループID |

toolbox() ⇒ Void

ツールボックスパーツ

Kind: global function
Returns: Void - none

color() ⇒ String

カラーサンプルを生成

Kind: global function
Returns: String - HTMLテキスト

menuBuild(op, force) ⇒ Void

メニューデータのインコア

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | op | Object | 実行オプション | | force | Boolean | 日付に関係なく更新 true/false |

sitemap(res) ⇒ String

サイトマップXMLの生成

Kind: global function
Returns: String - 生成XMLテキスト

| Param | Type | Description | | --- | --- | --- | | res | Object | httpレスポンスインターフェイス |

sort(dt, key, asc) ⇒ Array

メニューデータのソート

Kind: global function
Returns: Array - 結果オブジェクト配列

| Param | Type | Description | | --- | --- | --- | | dt | Array | メニューオブジェクト配列 | | key | String | キー項目 | | asc | String | asc/dsc 昇順/降順 |

validation(term) ⇒ Boolean

有効期間の判定

Kind: global function
Returns: Boolean - true/false OK/NG

| Param | Type | Description | | --- | --- | --- | | term | String | 有効期間表示(yy/mm/dd:yy/mm/dd) |

cleanup(op) ⇒ Void

セッションデータのクリーンアップ

Kind: global function
Returns: Void - none

| Param | Type | Description | | --- | --- | --- | | op | Object | 実行オプション |