diff --git a/javascriptsplits/c00.tex b/javascriptsplits/c00.tex index 463c680..9f4ee70 100644 --- a/javascriptsplits/c00.tex +++ b/javascriptsplits/c00.tex @@ -1,24 +1,18 @@ // CHAPTER -1: Introduction +/** Use --- -For development server-side with node: cpdf.js (minified version cpdf.min.js) +cpdf.js can be used from both node and the browser. -Load with "const cpdf = require('cpdf.js')" if installed in npm, or "const cpdf -= require('./cpdf.js')" to load from current directory. +For development server-side with node: `cpdf.js` (minified version +`cpdf.min.js`) Load with `const cpdf = require('cpdf.js')` if installed in npm, +or `const cpdf = require('./cpdf.js')` to load from current directory. -For development client-side with the browser : cpdf.browser.js - -(Minified version for deployment : cpdf.browser.min.js) - -Load with or similar. - - -Concurrency ------------ - -cpdf.js is synchronous and non-re-entrant. +For development client-side with the browser : `cpdf.browser.js` (minified +version for deployment : `cpdf.browser.min.js`). Load with `` or similar. Data types @@ -40,3 +34,9 @@ Errors Any function may raise an exception, containing a string describing the problem. +Concurrency +----------- + +cpdf.js is synchronous and non-re-entrant. In the browser, best used in a worker. +**/ +