Site Search
Search LifeStyle Racing
Search public page files, titles, headings, and visible text with stronger weighting for exact matches, filenames, headings, sections, and motorsport-related synonyms.
Query: "Usage"
195 results
1,788 files checked
767.8 ms
Best for static page content. Product database search, account-only data, and forum content would need an additional database or API-backed layer later if you want those included too.
Complete Match
Node Modules / Express Session
Node_Modules/express-session/README.md
...is new but not modified. Choosing `false` is useful for implementing login sessions, reducing server storage usage, or complying with laws that require permission before setting a cookie. Choosing `false` will also help with race conditions where a client makes multiple parallel requests without a session. The default...
Complete Match
Node Modules / Fresh
Node_Modules/fresh/README.md
...n to work-around this issue and also provides links to further reading on this Safari bug. ## Example ### API usage ```js var reqHeaders = { 'if-none-match': '"foo"' } var resHeaders = { 'etag': '"bar"' } fresh(reqHeaders, resHeaders) // => false var reqHeaders = { 'if-none-match': '"foo"' } var resHeaders = { 'etag':...
Complete Match
Node Modules / Define Data Property
Node_Modules/define-data-property/README.md
...ormal data property, in an environment without descriptor support, it will fall back to normal assignment. ## Usage ```javascript var defineDataProperty = require('define-data-property'); var assert = require('assert'); var obj = {}; defineDataProperty(obj, 'key', 'value'); defineDataProperty( obj, 'key2', 'value', tru...
Complete Match
Node Modules / Form Data
Node_Modules/form-data/Readme.md
.../form-data.svg)](https://david-dm.org/form-data/form-data) ## Install ``` npm install --save form-data ``` ## Usage In this example we are constructing a form with 3 fields that contain a string, a buffer and a file stream. ``` javascript var FormData = require('form-data'); var fs = require('fs'); var form = new FormD...
Complete Match
Node Modules / Gopd
Node_Modules/gopd/README.md
...m-badge-png]][package-url] `Object.getOwnPropertyDescriptor`, but accounts for IE's broken implementation. ## Usage ```javascript var gOPD = require('gopd'); var assert = require('assert'); if (gOPD) { assert.equal(typeof gOPD, 'function', 'descriptors supported'); // use gOPD like Object.getOwnPropertyDescriptor here...
Complete Match
Node Modules / Sparse Bitfield
Node_Modules/sparse-bitfield/README.md
...ields.io/travis/mafintosh/sparse-bitfield.svg?style=flat)](http://travis-ci.org/mafintosh/sparse-bitfield) ## Usage ``` js var bitfield = require('sparse-bitfield') var bits = bitfield() bits.set(0, true) // set first bit bits.set(1, true) // set second bit bits.set(1000000000000, true) // set the 1.000.000.000.000th b...
Complete Match
Node Modules / Combined Stream
Node_Modules/combined-stream/Readme.md
...t emits multiple other streams one after another. ## Installation ``` bash npm install combined-stream ``` ## Usage Here is a simple example that shows how you can use combined-stream to combine two files into one: ``` javascript var CombinedStream = require('combined-stream'); var fs = require('fs'); var combinedStrea...
Complete Match
MyWebsite / Node Modules / Bytes
MyWebsite/Node_Modules/bytes/Readme.md
...](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): ```bash $ npm install bytes ``` ## Usage ```js var bytes = require('bytes'); ``` #### bytes(number|string value, [options]): number|string|null Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `va...
Complete Match
MyWebsite / Node Modules / Debug
MyWebsite/Node_Modules/debug/README.md
...[here](https://github.com/visionmedia/debug/issues/370)** ## Installation ```bash $ npm install debug ``` ## Usage `debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle...
Complete Match
MyWebsite / Node Modules / Memory Pager
MyWebsite/Node_Modules/memory-pager/README.md
... ``` npm install memory-pager ``` ## Usage ``` js var pager = require('paged-memory') var pages = pager(1024) // use 1kb per page var page = pages.get(10) // get page #10 console.log(page.offset) // 10240 console.log(page.buffer) // a blank 1kb bu...
Complete Match
MyWebsite / Node Modules / Socket.io Parser
MyWebsite/Node_Modules/socket.io-parser/Readme.md
...l. Read the full API here: [socket.io-protocol](https://github.com/learnboost/socket.io-protocol). ## Example Usage ### Encoding and decoding a packet ```js var parser = require('socket.io-parser'); var encoder = new parser.Encoder(); var packet = { type: parser.EVENT, data: 'test-packet', id: 13 }; encoder.encode(pack...
Complete Match
MyWebsite / Node Modules / Set Function Length
MyWebsite/Node_Modules/set-function-length/README.md
.... - `loose`: Optional. If true, and the length fails to be set, do not throw. Default false. Returns `fn`. ## Usage ```javascript var setFunctionLength = require('set-function-length'); var assert = require('assert'); function zero() {} function one(_) {} function two(_, __) {} assert.equal(zero.length, 0); assert.equa...