{"_id":"preprocessor","_rev":"121-742871e1579000b31640e9c12613d0f8","name":"preprocessor","description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","dist-tags":{"latest":"1.4.0"},"versions":{"0.9.0":{"name":"preprocessor","version":"0.9.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.0","dist":{"shasum":"062b814a9234cfb9777fc3f092fffbcca88fa31e","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.0.tgz","integrity":"sha512-4G9RqE3vpsfBJH5RU4FCEN8Xy5CnREwQMBOWmmgyMaklolVdRFSx1iadsNdnnUl+1jndmg11rnysRHMlqw/k9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE43IKOMI+BHIlVhLR0Boy0le1yWJoAvBzejGuADRnpuAiAsyEABRzWFecTo/b/p3dNzipKiOEH7RrQhIz4MsTevqg=="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"0.9.1":{"name":"preprocessor","version":"0.9.1","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess.js":"./bin/preprocess.js"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.1","dist":{"shasum":"15d5747a3a7ddcfb6f18c83f7ecd4fbbc572e073","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.1.tgz","integrity":"sha512-f0z5JOF7T8TS7YUvvaDp6XdzvxE/XF79siJbB9QLc9N0LoQbb6FbsPdnhyIiiIw4mwzvrDk1Z9Bq4JSee/qv2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqDmoPNu04VfbdDXxFjS9nTstFbL1fctyqfzkRdWYwnAiAzuF+MYHlzLpIavIzUAy2azqvJZmkMADQv7+N9MZjEAw=="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"0.9.2":{"name":"preprocessor","version":"0.9.2","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"preferGlobal":true,"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.2","dist":{"shasum":"0e7d975db443a290207528af3945785e4cfac0de","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.2.tgz","integrity":"sha512-et41MTnLGVZDQ8+h60e7mFRlTa86YRue+5KTF727zVv2+BCCsCoOyxrqdi3lKy4LfrQ6ACLAFX6tLouKP0uoOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdviH2ZLGd+oBfRjRzkV3ypi4vOD5vE43OmEl7ttT8JQIgDEw6HdkecXcGZQfnC83HMrRaCRU6q0gx/NOk2p4tjQg="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"0.9.4":{"name":"preprocessor","version":"0.9.4","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.4","dist":{"shasum":"70e036769b8921d2e3f3bd8b46cc0c1f9905992a","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.4.tgz","integrity":"sha512-jRlYvGR5GeqGnJxMlE2G35o0X3OolXrdqe2GudxgmIRKRPxXpe48P6yPmXUxLvUHSMWZyxWXqf7HP+OgrWvn/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDMtU9PMa8OG7theq707fJxhnWnFhWVPBfNGbvKPZgygIhANP7CN2oOJAlkjP/QYcBguVd6tx10zi6SQiwJ4B/nthv"}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"0.9.5":{"name":"preprocessor","version":"0.9.5","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.5","dist":{"shasum":"1c810b9053160359095a568d04de5501d6b630a7","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.5.tgz","integrity":"sha512-enIXJ/TTCWiAZXkn6bu2/RDcCuqZv3BiBaHephKRscjPqYcF1q3Xmr7EwGrLB26Blnj3ApAmKAxmAdcZgN/d6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1hpup86SFx9JPHr1bXEY22XCvezEM8L6rsWOX378BCgIgJiiWrlVZRaEE5aijFvZfYFmQe1RqZbyIIz8jeSzP9wY="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"0.9.6":{"name":"preprocessor","version":"0.9.6","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.6","dist":{"shasum":"cb84c6b0b792fac7931b2428df1ea035b79e725b","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.6.tgz","integrity":"sha512-wisUALHSqcbRQe2cOgrVZLEyZSf0ssoC8UUhoPH3+Z0HzRcdTPhbvtVMxcs3HkOu0i0ZqfCPX3HQRalOW1Ap8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4cdp1R6F1UCW82GXUzvu2K5s+wEmQDrUPXGO6rHE/OAIhAIyJDxd99hJqYMoOFgG45aqaYXm8DUC+JIpPJV8pfBxZ"}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"0.9.7":{"name":"preprocessor","version":"0.9.7","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@0.9.7","dist":{"shasum":"490eb1df57f93bfc3574f4f5b607a6535615abb8","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-0.9.7.tgz","integrity":"sha512-qDChDGWxFxhrKVVJsbqb6dEXPocI468SOiuV9GuMWryj0N9CKd71/nX6Ox/BwsZXDevp8YyXd55StzNP/IByxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClGwWxlMEW4Ii9mqqrlDlBkmp4csMAv7czsKN5oFRkrgIhAPF44bj3Gmpx1/Lrvrfn7q2PT7duGtJpkG9Fp3YiOTqr"}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.0.0":{"name":"preprocessor","version":"1.0.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","contributors":[{"name":"Daniel Wirtz","email":"dcode@dcode.io"}],"main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":"https://github.com/dcodeIO/Preprocessor.js/issues","keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.0.0","dist":{"shasum":"1a8222e88977ccea9478ee5aaad0b6b496b56c13","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.0.0.tgz","integrity":"sha512-C0sCfhr4iQnPgYiqrhzQhxOOm5JcDxtnfy0+ocMW+kXw0au2dhVJGbODOqZ+z/bFTrR7d7ymIw5kvu8p1x4UJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqXaJIj/wqk/6Q0YL9466pxOYe0XpDnXWLGDWhDsx0+AiBtk7UJDXgIBTt1FJJhuqKehyfsAtsYnZ5V6EwSkx3Y0Q=="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.0.1":{"name":"preprocessor","version":"1.0.1","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7"},"license":"Apache License, Version 2.0","engines":{"node":">=0.6"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"java -jar closure-compiler/compiler.jar --create_source_map Preprocessor.min.map --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/fs.js --js Preprocessor.js --js_output_file Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.0.1","dist":{"shasum":"316e3a5d6cf2ec2761273478d0723ebbe52abc1e","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.0.1.tgz","integrity":"sha512-kDQ28h/5FBksHjwFt/t+0Hae+OTQ6HDHYzhK370FPIpbmy7RsYFOzmG8paCK99sZaNYTTCkWH2HjUxITpUZyHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6AEEhkJRZClhfM6b3CcVY9rmSrSP4UoC4PdoUHKXWhwIhAKWbxjPaOc3ygSt2HYmM4OSmieKwb0jD2L9fZ6/JnRVd"}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.0.2":{"name":"preprocessor","version":"1.0.2","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7","closurecompiler":">=1.1"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.0.2","dist":{"shasum":"ef573e30c9457d3b60a2a6406be593309259dae5","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.0.2.tgz","integrity":"sha512-BG+9Ce46hQNi4RMVD8lx52Z6zPuVX6byJdfJDWSJLT0lWi1EBt2WHoDzDfjN8U5Bc6cjo+xXHcVYOq4CypXAZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVxM1M2M12qZdf9OGyQgnpvNJlZjvnwFUH+UNVdp2+ZAiAfdYQ7JDZxhDspYodyz4TPa9/wFSLevxyLeISQY6Uplw=="}]},"_npmVersion":"1.2.0","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.0.3":{"name":"preprocessor","version":"1.0.3","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7","closurecompiler":">=1.1"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.0.3","dist":{"shasum":"b63d0ad9f4b4a9b83e7341c1de09e3405379dd2c","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.0.3.tgz","integrity":"sha512-lsuf2FYmAyxLqZI3lts1qfIX+UIC69HyVB7I3kT3WxNBCwjw6Re6ru1moJJM9WG4qomEkQalGbwujB9J6CpqhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm3AwQoYfSzyK9iyg5W/gfJOwq4lvq9schhh7IcW0rDAIhAIgLWqHHkdlLfQQAaJmEBOTV15mmE0vdTfTqNsh+aUG4"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.0.4":{"name":"preprocessor","version":"1.0.4","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7","closurecompiler":">=1.1"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.0.4","dist":{"shasum":"b6f39550ff27e4f892673bd4d815f34fa930a8c5","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.0.4.tgz","integrity":"sha512-8PjVyjcMK9ax8OzHDRSLX5JZ79A53n5JPUCuyOBHwEVVxbJq7wh0+X8mJTZThDUf4McB5DsI7VSS/VnyiK/u4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDX+ROoJPtIaJ9WayGWJIusohavC2DlRQB/jdQW6FRvMwIgMe9vPJmkifRtkkL5/w49DWdnEPD01jv9VgSUFyso9dg="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.1.0":{"name":"preprocessor","version":"1.1.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"nodeunit":">=0.7","closurecompiler":">=1.1"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.1.0","dist":{"shasum":"80978a333ead985c1afa9ad5fa7d3b9480a2746a","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.1.0.tgz","integrity":"sha512-XMzKIFZB3z6xPVMN3gYxjWlSBx6ZlR0h23Zf54mu8pSzORTUC42Ynat0B8GOvCGx+qPdXNHHHErK4RFY8NfsMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQZKnuaVsOfK85zXttdzfg3/TaAueqc3GcWKTPRTYWmAiBSYa2wvKApxFVJ/yJKFzhFBdhYwiK+rsJUjrlvu9GTvg=="}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.2.0":{"name":"preprocessor","version":"1.2.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"testjs":"latest","closurecompiler":"latest"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"nodeunit tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.2.0","dist":{"shasum":"060c120b78a7027fa2f11fe2e0c1fef4cfbe23b9","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.2.0.tgz","integrity":"sha512-pRwco0R94O8PioCuTWl8q1Uw//f07Xr9m/GyPX5oQN/Qaot2g9SRvWIrJgfM8Ix/yQk/ndNexeI3CpARnlDFOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDha2oEGEpYNWuoEbCtdm4qZgoeAjyjgZPtTfbe9AQ2tAIhAKkA8Cv83rVImh9VI84oxtcMMMFgFtpmKVuQ23q6kQ8l"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.3.0":{"name":"preprocessor","version":"1.3.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{},"devDependencies":{"testjs":"latest","closurecompiler":"latest"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"_id":"preprocessor@1.3.0","dist":{"shasum":"36eed77ed79eb89e88a5af3061ef42fda5746cbb","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.3.0.tgz","integrity":"sha512-dHjgrVVMmVSls8R3e/8Y77EGLVB1vUC/+y/nSdRplmIaMdFbiusrkFzcArifFPx94h+cW6fKiasPH3MblTM2iA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA7ACqs85dBVV3cxrWe/FH04KjdyKRC5Uwca0IiYhh/AIhAILjh+OXe714n2g2lVPC7mlWUrBj/w2w+u+sBPJIkdhc"}]},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"directories":{}},"1.4.0":{"name":"preprocessor","version":"1.4.0","author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"description":"Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a library.","main":"Preprocessor.js","bin":{"preprocess":"./bin/preprocess"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"dependencies":{"glob":"~3.2"},"devDependencies":{"testjs":"latest","closurecompiler":"latest"},"license":"Apache License, Version 2.0","engines":{"node":">=0.8"},"scripts":{"prepublish":"npm test","test":"node node_modules/testjs/bin/testjs tests/suite.js","make":"npm run-script compile && npm test && npm run-script jsdoc","compile":"ccjs Preprocessor.js --create_source_map=Preprocessor.min.map --compilation_level=ADVANCED_OPTIMIZATIONS --externs=node > Preprocessor.min.js","jsdoc":"jsdoc -c jsdoc.json"},"preferGlobal":true,"homepage":"https://github.com/dcodeIO/Preprocessor.js","_id":"preprocessor@1.4.0","_shasum":"b9c5b4dcbf236508f8cfe9105de2fe1272aa5179","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dcode","email":"dcode@dcode.io"},"maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"dist":{"shasum":"b9c5b4dcbf236508f8cfe9105de2fe1272aa5179","tarball":"https://registry.npmjs.org/preprocessor/-/preprocessor-1.4.0.tgz","integrity":"sha512-7wJ8YyNHURWvVDWJuoqWjZZSRUfQVtTQ43U0Ibo9bgQ1NCSBs4dkpgHnxOQoE1E2CO6JD6GZGRMAksEmV4Qi3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1rwOE7qaPrv1WTq9l0WnRaRLse/IHwywbyxct9PnpgAiBsUz8Z+jw6S8VbH7jA/qG8dgAZZ69hjh1GURUlV8/2PQ=="}]},"directories":{}}},"readme":"![Preprocessor.js - A JavaScript preprocessor](https://raw.github.com/dcodeIO/Preprocessor.js/master/Preprocessor.png)\r\n===========================================\r\nProvides a JavaScript source file preprocessor, e.g. to build different versions of a library. It's for example used to\r\nbuild [ProtoBuf.js](https://github.com/dcodeIO/ProtoBuf.js) (its [build](https://github.com/dcodeIO/ProtoBuf.js/blob/master/build.js)\r\nand [main script](https://github.com/dcodeIO/ProtoBuf.js/blob/master/src/ProtoBuf.js) are quite good examples).\r\n\r\nDirectives\r\n----------\r\n* Includes (always relative to the `baseDirectory`, defaults to \".\"):\r\n\r\n ```javascript\r\n ...\r\n // #include \"path/to/file.js\"\r\n ...\r\n ```\r\n\r\n* Static conditions:\r\n\r\n ```javascript\r\n // #ifdef FULL\r\n console.log(\"Including extension\");\r\n // #include \"path/to/extension.js\"\r\n // #else\r\n console.log(\"Not including extension\");\r\n // #endif\r\n ```\r\n \r\n* Inverse static conditions:\r\n\r\n ```javascript\r\n // #ifndef FULL\r\n console.log(\"Not including extension\");\r\n // #else\r\n console.log(\"Including extension\");\r\n // #include \"path/to/extension.js\"\r\n // #endif\r\n ```\r\n \r\n* Evaluable conditions:\r\n \r\n ```javascript\r\n // #if 1==2\r\n console.log(\"1==2\");\r\n // #elif 2==2\r\n console.log(\"2==2\");\r\n // #endif\r\n ```\r\n\r\n* Inline variables and functions:\r\n\r\n ```js\r\n // #define var PI=Math.PI\r\n // #define function RADTODEG(x){return x*180/PI}\r\n var angle = // #put RADTODEG(3)+\";\"\r\n ```\r\n \r\n* Writing the result of evaluated expressions:\r\n\r\n  ```javascript\r\n  var version = // #put '\"'+VERSION+'\";\"'\r\n  var str = // #put \"\\\"Hello world!\\\";\"\r\n  var onePlusOne = // #put (1+1)+\";\"\r\n  ```\r\n \r\nFeatures\r\n--------\r\n* [CommonJS](http://www.commonjs.org/) compatible\r\n* [RequireJS](http://requirejs.org/)/AMD compatible\r\n* Shim compatible (include the script, then use var ByteBuffer = dcodeIO.ByteBuffer;)\r\n* [node.js](http://nodejs.org) compatible, also available via [npm](https://npmjs.org/package/preprocessor)\r\n* [Closure Compiler](https://developers.google.com/closure/compiler/) ADVANCED_OPTIMIZATIONS compatible (fully annotated,\r\n`Preprocessor.min.js` has been compiled this way, `Preprocessor.min.map` is the source map)\r\n* Fully documented using [jsdoc3](https://github.com/jsdoc3/jsdoc)\r\n* Well tested through [nodeunit](https://github.com/caolan/nodeunit)\r\n* Zero production dependencies\r\n* Small footprint\r\n\r\nCommand line utility\r\n--------------------\r\nInstall via npm: `npm -g install preprocessor`\r\n\r\n#### Command line ####\r\n\r\nUsage: `preprocess sourceFile [baseDirectory] [-myKey[=myValue], ...] [> outFile]`\r\n\r\n```bash\r\npreprocess Source.js . -FULL=true > Source.full.js\r\n```\r\n\r\nAPI\r\n---\r\nThe API is quite simple:\r\n\r\n```javascript\r\nvar result = new Preprocessor(\r\n    mainFileSource,\r\n    baseDirectoryOrIncludes\r\n).process(defines);\r\n```\r\n\r\nwith `baseDirectoryOrIncludes` being either a string containing the path to the base directory or an object of included\r\nsources by filename. When running in a browser, only the later is supported.\r\n\r\n#### node.js / CommonJS ####\r\n\r\n```javascript\r\nvar Preprocessor = require(\"preprocessor\");\r\nvar source = \"...\"; // e.g. through fs.readFile\r\nvar pp = new Preprocessor(source, \".\");\r\nconsole.log(pp.process({\r\n    FULL: true\r\n}));\r\n```\r\n\r\n#### RequireJS / AMD ####\r\n\r\n```javascript\r\nrequire([\"/path/to/Preprocessor.js\"], function(Preprocessor) {\r\n    var source = \"...\"; // e.g. through fs.readFile / $.ajax\r\n    var pp = new Preprocessor(source, \".\");\r\n    console.log(pp.process({\r\n        FULL: true\r\n    }));\r\n});\r\n```\r\n\r\n#### Browser / shim ####\r\n**Note:** To use the `#include` directive in the browser, do not specify the base directory but an object of included\r\nsources by filename:\r\n\r\n```html\r\n<script src=\"//raw.github.com/dcodeIO/Preprocessor.js/master/Preprocessor.min.js\"></script>\r\n```\r\n\r\n```javascript\r\nvar Preprocessor = dcodeIO.Preprocessor;\r\nvar source = \"...\"; // e.g. through. $.ajax\r\nvar pp = new Preprocessor(source, {\r\n    \"./includes/extension.js\": \"var myVar = 2;\" // <- #include \"includes/extension.js\"\r\n});\r\nalert(pp.process({\r\n    FULL: true\r\n}));\r\n```\r\n\r\nUsing includes instead of a base directory like shown in the example above is supported regardless of the platform you\r\nare on.\r\n\r\nDownloads\r\n---------\r\n* [ZIP-Archive](https://github.com/dcodeIO/Preprocessor.js/archive/master.zip)\r\n* [Tarball](https://github.com/dcodeIO/Preprocessor.js/tarball/master)\r\n\r\nDocumentation\r\n-------------\r\n* [View documentation](http://htmlpreview.github.com/?http://github.com/dcodeIO/Preprocessor.js/master/docs/Preprocessor.html)\r\n\r\nTests (& Examples) [![Build Status](https://travis-ci.org/dcodeIO/Preprocessor.js.png?branch=master)](https://travis-ci.org/dcodeIO/Preprocessor.js)\r\n------------------\r\n* [View source](https://github.com/dcodeIO/Preprocessor.js/blob/master/tests/suite.js)\r\n* [View report](https://travis-ci.org/dcodeIO/Preprocessor.js)\r\n\r\nLicense\r\n-------\r\nApache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.html\r\n","maintainers":[{"name":"dcode","email":"dcode@dcode.io"}],"time":{"modified":"2022-06-24T14:22:59.236Z","created":"2013-03-05T17:11:23.256Z","0.9.0":"2013-03-05T17:11:30.007Z","0.9.1":"2013-03-05T17:27:44.470Z","0.9.2":"2013-03-05T18:12:47.904Z","0.9.4":"2013-03-05T22:15:12.697Z","0.9.5":"2013-03-05T22:22:35.506Z","0.9.6":"2013-03-05T22:29:33.111Z","0.9.7":"2013-03-06T02:46:50.871Z","1.0.0":"2013-03-07T18:16:41.394Z","1.0.1":"2013-03-09T18:54:17.707Z","1.0.2":"2013-03-12T13:21:55.301Z","1.0.3":"2013-06-17T18:20:05.840Z","1.0.4":"2013-09-08T18:17:56.909Z","1.1.0":"2013-10-10T01:42:09.142Z","1.2.0":"2013-12-13T13:45:25.802Z","1.3.0":"2013-12-28T00:36:56.142Z","1.4.0":"2014-07-23T16:04:30.321Z"},"author":{"name":"Daniel Wirtz","email":"dcode@dcode.io"},"repository":{"type":"git","url":"https://github.com/dcodeIO/Preprocessor.js.git"},"homepage":"https://github.com/dcodeIO/Preprocessor.js","keywords":["source","source code","JavaScript","ECMAScript","preprocessor","pre-processor","pre processor","processor","utility"],"bugs":{"url":"https://github.com/dcodeIO/Preprocessor.js/issues"},"license":"Apache License, Version 2.0","readmeFilename":"README.md","users":{"stereosteve":true,"elussich":true,"moreta":true,"nex":true,"0x4c3p":true}}