タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

node.jsに関するAs_hspのブックマーク (6)

  • grunt-contrib-uglify

    mangle Type: Boolean Object Default: {} Turn on or off mangling with default options. If an Object is specified, it is passed directly to ast.mangle_names() and ast.compute_char_frequency() (mimicking command line behavior). View all options here. compress Type: Boolean Object Default: {} Turn on or off source compression with default options. If an Object is specified, it is passed as options to

    grunt-contrib-uglify
    As_hsp
    As_hsp 2013/07/18
    [grunt] ファイルの圧縮
  • grunt-exec

    grunt-exec Grunt plugin for executing shell commands. Installation Install grunt-exec using npm: $ npm install grunt-exec --save-dev Then add this line to your project's Gruntfile.js: Usage This plugin is a multi task, meaning that grunt will automatically iterate over all exec targets if a target is not specified. If the exit code generated by the specified shell command is greater than 0, grunt-

    grunt-exec
    As_hsp
    As_hsp 2013/07/18
    [grunt] シェルコマンドを実行
  • grunt-contrib-concat

    grunt-contrib-concat2.1.0 • Public • Published 2 years ago grunt-contrib-concat v2.1.0 Concatenate files. Getting Started If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: Concat task Run this task

    grunt-contrib-concat
    As_hsp
    As_hsp 2013/07/18
    [grunt] 複数のファイルを結合する
  • querystring - Node.js v0.4.12 Manual & Documentation

    Query String このモジュールはクエリ文字列を処理するユーティリティを提供します。 以下のメソッドから成ります: querystring.stringify(obj, sep='&', eq='=') クエリオブジェクトを文字列へ直列化します。オプションとしてデフォルトの区切り文字と代入文字を上書き指定できます。 例: querystring.stringify({foo: 'bar'}) // returns 'foo=bar' querystring.stringify({foo: 'bar', baz: 'bob'}, ';', ':') // returns 'foo:bar;baz:bob' querystring.parse(str, sep='&', eq='=') クエリ文字列をオブジェクトに復元します。オプションとしてデフォルトの区切り文字と代入文字を上書き指定

  • node.jsでファイルの読み書きをする - wktkWebDiary

    cgiを作っているときにサーバからのレスポンスをファイルに書きだしてデバッグするということがあると思います。 javascriptでは狭義的にファイルの読み書きはできませんがnode.jsを用いるとファイルの読み書きが可能になります。 ファイルの書き込みは追記ではなくて、呼ばれるたびに新規作成になります。 ファイルを読み込むとき var fs = require('fs'); var read = fs.createReadStream('./hello.js'); read.on('data', function (data) { console.log('read: data'); }) .on('end', function () { console.log('read: end'); }) .on('error', function (exception) { console.lo

    node.jsでファイルの読み書きをする - wktkWebDiary
  • node.jsのいろいろなモジュール7 – js-optsでコマンドライン引数を使う | DevelopersIO

    optsを使ってコマンドライン引数を使う node.jsで、プログラム実行時にコマンドライン引数を渡して実行したい場合、みなさんはどうしていますか? process.argv変数を参照すれば指定された引数を取ることができますが、js-optsモジュール ※1を使用すればもっと簡単に行うことができます。 今回はコマンドライン引数を扱うためのjs-optsについてご紹介します。 インストール 今回使用した動作環境は以下のとおりです。 OS : MacOS X 10.7.1 Node.js : v0.4.11 npm : 1.0.30 ではnpmを使用してインストールしましょう。 % npm install opts インストールできたらnpmコマンドで確認します。 %npm list /path/your/app └── opts@1.2.1 extraneous インストールできたので、サン

    node.jsのいろいろなモジュール7 – js-optsでコマンドライン引数を使う | DevelopersIO
  • 1