beezlib

0.9.22 • Public • Published

beezlib

About

Node.js library for beez and beez-founation with beez-tools.

Used Project

Requirements

Features

  • sprite

    • 複数画像を一枚にする
      • StylusファイルでCSSを出力可能
    • ライブラリの切り替え(options.sprite2)
      • node-spritesheet, node-spriteから選択可能
      • node-spritesheetでは複数解像度対応時にバグが見つかったため、次のメジャーアップデートではnode-spriteのみになります。
  • stylus

    • コンパイル
    • b64 サポート
    • web-font サポート
    • nib 標準搭載
  • image

    • optipng
    • pngquant
    • jpegoptim
    • imagemagick
      • 画像サイズ取得
      • ファイル名のpixelRatioから、それ以外のpixelRatio画像をリサイズ
  • fsys

    • ファイルのタイプを判定(file, directory, block device, charactor device, symlink, fifo, socket)
    • rm -rf (sync) : フォルダ削除
    • mkdir -p (async|sync) : フォルダ作成
    • glob : フォルダ内を走査
    • JSONファイルを読み込む
    • JSファイル(JSON)を読み込む
    • chmod ファイル権限変更
    • cp : ファイルコピー
    • ファイルパスの '~' をパスに変換
  • fsys.store

    • ディレクトリ内の、JSON, Function-JSON ファイルをまとめてロードし保持する。
      • Auto-load
  • simple logging

    • ログレベル、端末のカラーリング、ログ出力行番号サポート
  • obj

    • オブジェクトのコピー
  • template

    • handlebars
      • hbs to hbsc.js
      • hbsp to hbsp.js
      • require.beez.js.hbs to require.beez.hbsc.js
      • hbs to hbsc to html

Install

$ npm install beezlib

Test

$ npm install .
$ make test

jshint

$ npm install .
$ make jshint

jsdoc

$ npm install .
$ make jsdoc

Documents

Load configuration file (javascript/json)

You can load configuration file writeen by json, javascript.

test/json/item.json

{
    "item": { // item data
        "fruit": "Orange"
    }
}

test/json/json.js

(function () {
 
    // You can use these global objects on Node.js.
    // 'process', 'require', '__filename', '__dirname', 'module', 'exports'
 
    var fs = require('fs'); // sample
 
    return {
        hoge: "foo"
    };
}());

Support node.js global object

Contributing

Copyright

CyberAgent, Inc. All rights reserved.

LICENSE

@see : LICENSE

The MIT License (MIT)

Copyright © CyberAgent, Inc. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bitdeli Badge

Package Sidebar

Install

npm i beezlib

Weekly Downloads

19

Version

0.9.22

License

none

Last publish

Collaborators

  • fkei
  • cyberagent
  • suemasa
  • layzie