Dropbox.Tech( Developers Application Front End Infrastructure Machine Learning Mobile Security Culture )
For front-end developers who crave maintainable assets, Jam is a package manager for JavaScript. Unlike other repositories, we put the browser first by using AMD modules. View project on GitHub Install Jam Browse packages Read the docs Submit issues Create a package Manage dependencies Using a stack of script tags isn't the most maintainable way of managing dependencies, with Jam packages and AM
► 2026 (2) ► avril (1) ► mars (1) ► 2025 (2) ► décembre (1) ► octobre (1) ► 2023 (2) ► août (1) ► février (1) ► 2022 (3) ► décembre (1) ► avril (1) ► février (1) ► 2021 (5) ► décembre (2) ► juin (1) ► février (1) ► janvier (1) ► 2020 (10) ► décembre (1) ► novembre (2) ► septembre (1) ► juin (1) ► mai (1) ► avril (1) ► mars (2) ► février (1) ► 2019 (4) ► novembre (1) ► octobre (1) ► juillet (1) ► j
var SM = require('sm'); var sm = new SM({ shell: "js" }); sm.eval('var x = 12; x * 3', function(err, result) { // got the result }); sm.eval('throw 12', function(err, result) { // got the thrown exception }); sm.check('delete for this', function(err, result) { // got the syntax error }); sm.check('function asi() { return 12 }', function(err, result) { // syntax successfully checked }); sm.parse('v
README.markdownCode Painter Code Painter is a JavaScript beautifier that instead of asking you to manually specify the desired formatting style, can infer it from a code sample provided by you. This could, for instance, be a code snippet from the same project that your new code is supposed to be integrated with. It uses the excellent Esprima parser by Ariya Hidayat (thanks!). The name is inspired
Syntactic transformations of JavaScript code, with taking care of whitespaces and comments. View the Project on GitHub veged/krasota.js Download ZIP File Download TAR Ball View On GitHub What is this? krasota.js is trying to save the world. It provides the ability to carry out the syntactic transformation JavaScript code. Conversions can be both for the protection coding style, and for more comple
動的に生成できるといいよね。 ってことで、JavaScriptコードを書いた。 文字列生成の結果を見るためにブラウザで動作するサンプル セキュリティに配慮したwebサイトは、レスポンスヘッダに Origin : domainだとかを加えたりして、サーバーの応答も細かく調整するんだけど、ブラウザ側でもサーバーの指定した制限事項に従って「コンテンツを保護しつつ表示したい」よね。ってことでContent Security Policy を適用する。 信頼できるドメインを指定したり、JavaScriptの挙動を許可したりすることで、外部からの攻撃を防ごうという機能。 取り敢えず、レスポンスヘッダをごにょごにょすると、「対応したブラウザの挙動」はサイトの指定した制限を受けることになる。 たとえば、最も単純な CSP用のレスポンスヘッダを返却するように指定すると、ブラウザのCSP制限で inline
There are navigation as a link to the content page on this website: /main about links /Lectures/ JavaScript 1 2 3 JavaScript ⇠ Lectures 2012-03-28 23:30 2012-03-28 23:30 内容 1.1.はじめの環境整備 1.2.電卓とJavaScriptの式と関数の考え方 1.3.変数を使って少しプログラムらしい事をしてみる 1.4.関数も使えたなら、もうプログラムらしいものも作れるね 1.5.プログラムをファイルに保存して実行してみよう 1.A.付録 1.A.1.○○についてもう一度! 1.A.2.お勧めのテキストエディタを教えて下さい 1.A.3.Windowsとcmdでの実行例 1.1. 環境整備 さっそくですが、 Node.js を
既にあるような気もするのですが、ちょっとだけ特殊な要件に対応したかったので、uglify-me という JS 圧縮ライブラリである UglifyJS のフロントエンドを Node.js で組んでみました。 hakobera/uglify-me · GitHub デモ 以下のようなケースにマッチします。 ビルドサーバや、各開発者のマシンに Node.js が様々な理由で入れられない Closure Compiler Service API で圧縮するのは、セキュリティ上の理由などでダメだと言われた 圧縮用処理がシェルスクリプトだけで記述できなければいけない ようするに、既存のアプリ、インフラ、開発環境にほとんど手を加えずに、JS の圧縮を実現するにはどうすれば良いか、という思想で作ってあります。上記のケースに当てはまらない場合、普通に UglifyJS の CLI か、Closure Com
Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
JavaScript Advent Calendar 2011 (Node.js/WebSocketsコース)3日目のhokacchaです。Node.jsのテストフレームワーク、mochaについて書きます。 mochaはTJが新しく作り始めているテストフレームワークです。ドキュメントを見ればできることは大体書いてありますので、ドキュメントを元にどういうことができるのかを解説していきます。現時点でのバージョンは0.2.0です。 http://visionmedia.github.com/mocha/ shouldについて まずmochaでどういうことができるかの前にshouldについて解説しておきます。mochaのドキュメントには特に説明もなくshouldが使われていて、shouldでどういうことができるかわかってないと、ドキュメントを読んだときにmochaの機能なのかshouldの機能なの
simple, flexible, fun Mocha is a feature-rich JavaScript test framework running on node and the browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. Hosted on GitHub. Features browser support simple async support proper exit status for CI support etc auto-detects and
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く