open-index/open-npm huggingface dataset:
npm package: @kingjs/reflect.descriptor.rename
Description: Renames functions found in a descriptor.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[reflect][ns0].[descriptor][ns1].[rename][ns2]
Renames functions found in a descriptor.

## API
```ts
rename(this, template)
```

### Parameters
- `this`: The descriptor whose functions will be renamed.
- `template`: The name to assign to each function. A  placeholder for `name` will be expanded to the name of  the function being replaced.
### Returns
Returns the descriptor with its functions renamed.


## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/reflect.descriptor.rename
```
## Dependencies
|Package|Version|
|---|---|
|[`@kingjs/function-ex.rename`](https://www.npmjs.com/package/@kingjs/function-ex.rename)|`^1.0.0`|
|[`@kingjs/is`](https://www.npmjs.com/package/@kingjs/is)|`^1.0.9`|
|[`@kingjs/string-ex.expand`](https://www.npmjs.com/package/@kingjs/string-ex.expand)|`^1.0.0`|
## Source
https://repository.kingjs.net/reflect/descriptor/rename
## License
MIT

![Analytics](https://analytics.kingjs.net/reflect/descriptor/rename)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/reflect
[ns1]: https://www.npmjs.com/package/@kingjs/reflect.descriptor
[ns2]: https://www.npmjs.com/package/@kingjs/reflect.descriptor.rename
npm package: @kingjs/reflect.implement-i-enumerable
Description: Implements `IEnumerable` given a factory that, given the container, returns a `moveNext` function.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[reflect][ns0].[implement-i-enumerable][ns1]
Implements `IEnumerable` given a factory that, given the container, returns a `moveNext` function.
## Usage
```js
var assert = require('assert');
var IEnumerable = require('@kingjs/i-enumerable');
var IEnumerator = require('@kingjs/i-enumerator');
var implementIEnumerable = require('@kingjs/reflect.implement-i-enumerable');

var target = implementIEnumerable(
  [ 0 ], 
  function moveNextFactory(instance) {
    var i = -1;

    return function moveNext() {
      if (i + 1 == instance.length)
        return false;
      this.current_ = instance[++i]
      return true;
    }
  }
)

var enumerator = target[IEnumerable.getEnumerator]();
assert(enumerator[IEnumerator.moveNext]());
assert(enumerator[IEnumerator.current] == 0);
assert(!enumerator[IEnumerator.moveNext]());
```

## API
```ts
implementIEnumerable(target, createMoveNext(this, instance))
```

### Parameters
- `target`: The instance on which to implement `IEnumerable`.
- `createMoveNext`: A factory that, given the container, returns a `moveNext` function. `moveNext` should return `true` if more  elements remain; otherwise `false`.
  - `this`: The enumerator. When a new value is generate it should be stored in `this.current_`.
  - `instance`: The instance to enumerate.
### Returns
`target`


## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/reflect.implement-i-enumerable
```
## Dependencies
|Package|Version|
|---|---|
|[`@kingjs/i-enumerable`](https://www.npmjs.com/package/@kingjs/i-enumerable)|`^1.0.6`|
|[`@kingjs/i-enumerator`](https://www.npmjs.com/package/@kingjs/i-enumerator)|`^1.0.7`|
|[`@kingjs/reflect.implement-interface`](https://www.npmjs.com/package/@kingjs/reflect.implement-interface)|`^1.0.1`|
## Source
https://repository.kingjs.net/reflect/implement-i-enumerable
## License
MIT

![Analytics](https://analytics.kingjs.net/reflect/implement-i-enumerable)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/reflect
[ns1]: https://www.npmjs.com/package/@kingjs/reflect.implement-i-enumerable
npm package: @kingjs/reflect.is
Author: Chris King
Latest version: 1.0.1

# @[kingjs][@kingjs]/[reflect][ns0].[is][ns1]





### Remarks


## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/reflect.is
```

## Source
https://repository.kingjs.net/reflect/is
## License
MIT

![Analytics](https://analytics.kingjs.net/reflect/is)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/reflect
[ns1]: https://www.npmjs.com/package/@kingjs/reflect.is
npm package: @kingjs/require-packages
Description: Requires dependencies found in packages.json and returns module names mapped to exports and a tree representing module names terminating in exports.
Latest version: 1.0.3
Deprecated: see @kingjs/create-dependencies

# @[kingjs][@kingjs]/[require-packages][ns0]
Requires dependencies found in packages.json and returns module names mapped to exports and a tree representing module names terminating in exports.
## Usage
Given this `packages.json`:
```js
{
  "name": "@kingjs/require-packages.test",
  "version": "1.0.0",
  "dependencies": {
    "@kingjs/camel-case.join": "^1.0.0",
    "@kingjs/camel-case.split": "^1.0.0",
    "@kingjs/is": "^1.0.6",
    "lodash": "^4.17.11"
  },
  "devDependencies": {
    "@kingjs/assert-theory": "^1.0.15"
  }
}

```
Load dependencies like this:
```js
var assert = require('assert');

var {
  ['lodash']: lodash,
  ['@kingjs/is']: is,
  ['@kingjs/camel-case.split']: split,
  ['@kingjs/camel-case.join']: join,
  ['@kingjs/assert-theory']: assertTheory,
} = require('@kingjs/require-packages').call(module);

assert(lodash);         // present in "dependencies"
assert(is);             // present in "dependencies"
assert(split);          // present in "dependencies"
assert(join);           // present in "dependencies"
assert(!assertTheory);  // missing in "dependencies"


```
Or, load dependencies like this:
```js
var assert = require('assert');

var {
  lodash,
  ['@kingjs']: { is, camelCase: { split, join } },
} = require('@kingjs/require-packages').call(module);

assert(lodash == require('lodash'));
assert(is == require('@kingjs/is'));
assert(split == require('@kingjs/camel-case.split'));
assert(join == require('@kingjs/camel-case.join'));
```
## API
```ts
requirePackages(this)
```
### Parameters
- `this`: The module of the package doing the requiring.
### Returns
Module names mapped to exports and an tree representing module names terminating in exports.
### Remarks
Ensures that production code requires only packages listed in dependencies.
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/require-packages
```
## License
MIT

![Analytics](https://analytics.kingjs.net/{path})

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/require-packages
npm package: @kingjs/resolver
Description: ```js var tree = require('@kingjs/descriptor.family.tree'); ``` result: ```js ``` ## API ```ts declare function tree( ): any ``` ### Interfaces - `Descriptor`: see [@kingjs/descriptor][descriptor] ### Parameters ### Returns ## Remarks ## I
Author: Chris King
Latest version: 1.0.2

# @[kingjs](https://www.npmjs.com/package/kingjs)/[descriptor](https://www.npmjs.com/package/@kingjs/descriptor).[family](https://www.npmjs.com/package/@kingjs/descriptor.family).tree
## Usage
```js
var tree = require('@kingjs/descriptor.family.tree');
```
result:
```js
```
## API
```ts
declare function tree(
): any
```
### Interfaces
- `Descriptor`: see [@kingjs/descriptor][descriptor]
### Parameters
### Returns
## Remarks
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/descriptor.family.tree
```
## License
MIT

![Analytics](https://analytics.kingjs.net/descriptor/family/tree)


  [descriptor]: https://www.npmjs.com/package/@kingjs/descriptor
npm package: @kingjs/sequence
Description: Yield arguments with the Enumerable interface.
Author: Chris King
Latest version: 1.0.5
Deprecated: see @kingjs/enumerable.create

# @kingjs/sequence

Yield arguments with the `Enumerable` interface.

## Usage

Create an Enumerable to yield the values `1`, `2`, and `3` like this:

```js
var sequence = require('@kingjs/sequence')

var enumerable = sequence(0, 1, 2);

var enumerator = enumerable.getEnumerator();

var result = [];
while (enumerator.moveNext()) 
  result.push(enumerator.current);

result;
```
result:
```js
[0, 1, 2];
```

## API

```ts
declare interface Enumerable {
  getEnumerator: () => {
    moveNext: () => boolean,
    current
  }
}  

declare function sequence(...args: any[]): Enumerable
```
### Interfaces
> `Enumerable`: A sequence of values. If `moveNext()` returns `true`, then `current` has been set to the next (or first) value. If `moveNext()` returns `false`, then all values have been returned.

### Parameters
> `args`: The arguments to yield.

### Return Value
> An enumerable which returns the arguments as a sequence.

## Install
With [npm](https://npmjs.org/) installed, run

```
$ npm install @kingjs/sequence
```

## License

MIT

![Analytics](https://analytics.kingjs.net/enumerable/create)
npm package: @kingjs/shim.generator-iterator
Description: Shim generators so they conform to the Symbol.iterable protocol.
Author: Chris King
Latest version: 1.0.1
Deprecated: see @kingjs/shim

# @[kingjs](https://www.npmjs.com/package/kingjs)/[shim](https://www.npmjs.com/package/kingjs/shim).generator-iterator
Shim generators so they implement the `Symbol.iterator` protocol.
## Usage
Demonstrate the before and after behavior of this shim like this:
```js
var assert = require('assert');

function* generator() { yield 0; }

// oddly, a generator is not it's own Symbol.iterator
assert(!generator[Symbol.iterator]);

require('@kingjs/shim.generator-iterator');

// Shim generators so they implement the Symbol.iterator protocol
var iterator = generator[Symbol.iterator]();
assert(iterator);

var next;
assert(next = iterator.next(), !next.done);
assert(next.value == 0);
assert(next = iterator.next(), next.done);
```
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/shim.generator-iterator
```
## License
MIT

![Analytics](https://analytics.kingjs.net/shim.generator-iterator)
npm package: @kingjs/string-ex
Description: ```js var copy = require('@kingjs/string-ex'); ``` result: ```js ``` ## API ```ts declare function stringEx( ): any ``` ### Parameters ### Returns ## Remarks ## Install With [npm](https://npmjs.org/) installed, run ``` $ npm install @kingjs/string-ex ``` 
Author: Chris King
Latest version: 1.0.0
Deprecated: see @kingjs/string-ex namespace

# @[kingjs](https://www.npmjs.com/package/kingjs)/string-ex
## Usage
```js
var copy = require('@kingjs/string-ex');
```
result:
```js
```
## API
```ts
declare function stringEx(
): any
```
### Parameters
### Returns
## Remarks
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex
```
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex)
npm package: @kingjs/string-ex.capitalize
Description: Capitalize a string.
Latest version: 1.0.1

# @[kingjs][@kingjs]/[string-ex][ns0].[capitalize][ns1]
Capitalize a string.
## Usage
```js
var assert = require('assert');
var Capitalize = require('@kingjs/string-ex.capitalize');

assert('foo'[Capitalize]() == 'Foo');
```

## API
```ts
capitalize(this)
```
### Parameters
- `this`: The string.
### Returns
Returns a capitalized version of the string.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.capitalize
```
## Source
https://repository.kingjs.net/string-ex/capitalize
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/capitalize)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.capitalize
npm package: @kingjs/string-ex.decapitalize
Description: Decapitalize a string.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[string-ex][ns0].[decapitalize][ns1]
Decapitalize a string.
## Usage
```js
var assert = require('assert');
var Decapitalize = require('@kingjs/string-ex.decapitalize');

assert('Foo'[Decapitalize]() == 'foo');
```

## API
```ts
decapitalize(this)
```
### Parameters
- `this`: The string.
### Returns
Returns a decapitalized version of the string.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.decapitalize
```
## Source
https://repository.kingjs.net/string-ex/decapitalize
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/decapitalize)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.decapitalize
npm package: @kingjs/string-ex.expand
Description: Given a string with the format of a template literal,  expand its placeholders with the values corresponding to a descriptor's keys.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[string-ex][ns0].[expand][ns1]
Given a string with the format of a template literal,  expand its placeholders with the values corresponding to a descriptor's keys.
## Usage
```js
var assert = require('assert');
var Expand = require('@kingjs/string-ex.expand');

var foo = 'bar';
var result = 'Key "foo" is "${foo}"'[Expand]({ foo });
assert('Key "foo" is "bar"' == result);
```

## API
```ts
expand(this[, descriptor])
```
### Parameters
- `this`: A string with the format of a template literal.
- `descriptor`: The values to substitute for the  placeholders in `this`.
### Returns
A string whose placeholder have been replaced with the  values of the corresponding descriptor keys.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.expand
```
## Source
https://repository.kingjs.net/string-ex/expand
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/expand)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.expand
npm package: @kingjs/string-ex.is-capitalized
Description: Test if a string is capitalized.
Latest version: 1.0.1

# @[kingjs][@kingjs]/[string-ex][ns0].[is-capitalized][ns1]
Test if a string is capitalized.
## Usage
```js
var assert = require('assert');
var IsCapitalized = require('@kingjs/string-ex.is-capitalized');

assert('Foo'[IsCapitalized]() == true);
assert('foo'[IsCapitalized]() == false);
```

## API
```ts
isCapitalized(this)
```
### Parameters
- `this`: The string.
### Returns
Returns true if the first character is upper case.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.is-capitalized
```
## Source
https://repository.kingjs.net/string-ex/is-capitalized
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/is-capitalized)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.is-capitalized
npm package: @kingjs/string-ex.is-lower-case-at
Description: Test if a character at an index in a string is lower case.
Latest version: 1.0.1

# @[kingjs][@kingjs]/[string-ex][ns0].[is-lower-case-at][ns1]
Test if a character at an index in a string is lower case.
## Usage
```js
var assert = require('assert');
var IsLowerCaseAt = require('@kingjs/string-ex.is-lower-case-at');

assert('Foo'[IsLowerCaseAt](0) == false);
assert('Foo'[IsLowerCaseAt](1) == true);
```

## API
```ts
isLowerCaseAt(this, index)
```
### Parameters
- `this`: The string.
- `index`: The zero based index at which to test casing.
### Returns
Returns true if the character at `index` is lower case.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.is-lower-case-at
```
## Source
https://repository.kingjs.net/string-ex/is-lower-case-at
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/is-lower-case-at)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.is-lower-case-at
npm package: @kingjs/string-ex.is-upper-case-at
Description: Test if a character at an index in a string is upper case.
Latest version: 1.0.1

# @[kingjs][@kingjs]/[string-ex][ns0].[is-upper-case-at][ns1]
Test if a character at an index in a string is upper case.
## Usage
```js
var assert = require('assert');
var IsUpperCaseAt = require('@kingjs/string-ex.is-upper-case-at');

assert('Foo'[IsUpperCaseAt](0) == true);
assert('Foo'[IsUpperCaseAt](1) == false);
```

## API
```ts
isUpperCaseAt(this, index)
```
### Parameters
- `this`: The string.
- `index`: The zero based index at which to test casing.
### Returns
Returns true if the character at `index` is upper case.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.is-upper-case-at
```
## Source
https://repository.kingjs.net/string-ex/is-upper-case-at
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/is-upper-case-at)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.is-upper-case-at
npm package: @kingjs/string-ex.join-lines
Description: Join lines in a string with a separator.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[string-ex][ns0].[join-lines][ns1]
Join lines in a string with a separator.
## Usage
```js
var assert = require('assert');
var os = require('os');
var JoinLines = require('@kingjs/string-ex.join-lines');

var EndOfLine = os.EOL;
var NewLine = '\n';
var CarriageReturn = '\r';

var lines = `foo${NewLine}bar${CarriageReturn}baz${EndOfLine}moo`;

var paragraph = lines[JoinLines]();
assert(paragraph == 'foo bar baz moo');

var fullName = lines[JoinLines]('.');
assert(fullName == 'foo.bar.baz.moo');

```

## API
```ts
joinLines(this[, separator])
```
### Parameters
- `this`: The string of newlines to join.
- `separator`: The separator to join the newlines with.
### Returns
Returns the string with newlines replaced with the separator.
### Remarks
Adjacent empty lines are replaced with a single separator.
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.join-lines
```
## Source
https://repository.kingjs.net/string-ex/join-lines
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/join-lines)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.join-lines
npm package: @kingjs/string-ex.replace-all
Description: Returns a new string in which all occurrences of a  substring are replaced with another string.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[string-ex][ns0].[replace-all][ns1]
Returns a new string in which all occurrences of a  substring are replaced with another string.
## Usage
```js
var assert = require('assert');
var ReplaceAll = require('@kingjs/string-ex.replace-all');

var result = "fooBarFooBar"[ReplaceAll]('Bar', 'Moo');
assert(result == 'fooMooFooMoo');

```

## API
```ts
replaceAll(this, oldValue, newValue)
```
### Parameters
- `this`: The string to search and replace.
- `oldValue`: The string to be replaced.
- `newValue`: The string to replace all occurrences of `oldValue`.
### Returns
A string that is equivalent to the current string except  that all instances of `oldValue` are replaced with `newValue`.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string-ex.replace-all
```
## Source
https://repository.kingjs.net/string-ex/replace-all
## License
MIT

![Analytics](https://analytics.kingjs.net/string-ex/replace-all)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string-ex
[ns1]: https://www.npmjs.com/package/@kingjs/string-ex.replace-all
npm package: @kingjs/string.expand
Description: Given a string with the format of a template literal,  expand its placeholders with the values corresponding to a descriptor's keys.
Latest version: 1.0.0
Deprecated: see @kingjs/string-ex.expand

# @[kingjs][@kingjs]/[string][ns0].[expand][ns1]
Given a string with the format of a template literal,  expand its placeholders with the values corresponding to a descriptor's keys.
## Usage
```js
var assert = require('assert');
var expand = require('@kingjs/string.expand');

var foo = 'bar';
var result = expand.call('Key "foo" is "${foo}"', { foo });
assert('Key "foo" is "bar"' == result);
```

## API
```ts
expand(this[, descriptor])
```
### Parameters
- `this`: A string with the format of a template literal.
- `descriptor`: The values to substitute for the  placeholders in `this`.
### Returns
A string whose placeholder have been replaced with the  values of the corresponding descriptor keys.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string.expand
```
## Source
https://repository.kingjs.net/string/expand
## License
MIT

![Analytics](https://analytics.kingjs.net/string/expand)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string
[ns1]: https://www.npmjs.com/package/@kingjs/string.expand
npm package: @kingjs/string.join-lines
Description: Join lines in a string with a separator.
Latest version: 1.0.1
Deprecated: see @kingjs/string-ex.join-lines

# @[kingjs][@kingjs]/[string][ns0].[join-lines][ns1]
Join lines in a string with a separator.
## Usage
```js
var assert = require('assert');
var os = require('os');
var joinLines = require('@kingjs/string.join-lines');

var EndOfLine = os.EOL;
var NewLine = '\n';
var CarriageReturn = '\r';

var lines = `foo${NewLine}bar${CarriageReturn}baz${EndOfLine}moo`;

var paragraph = joinLines.call(lines);
assert(paragraph == 'foo bar baz moo');

var fullName = joinLines.call(lines, '.');
assert(fullName == 'foo.bar.baz.moo');

```

## API
```ts
joinLines(this[, separator])
```
### Parameters
- `this`: The string of newlines to join.
- `separator`: The separator to join the newlines with.
### Returns
Returns the string with newlines replaced with the separator.
### Remarks
Adjacent empty lines are replaced with a single separator.
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string.join-lines
```
## Source
https://repository.kingjs.net/string/join-lines
## License
MIT

![Analytics](https://analytics.kingjs.net/string/join-lines)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string
[ns1]: https://www.npmjs.com/package/@kingjs/string.join-lines
npm package: @kingjs/string.replace-all
Description: Returns a new string in which all occurrences of a  substring are replaced with another string.
Latest version: 1.0.0
Deprecated: see @kingjs/string-ex.replace-all

# @[kingjs][@kingjs]/[string][ns0].[replace-all][ns1]
Returns a new string in which all occurrences of a  substring are replaced with another string.
## Usage
```js
var assert = require('assert');
var replaceAll = require('@kingjs/string.replace-all');

var target = "fooBarFooBar";
var result = replaceAll.call(target, 'Bar', 'Moo');
assert(result == 'fooMooFooMoo');

```

## API
```ts
replaceAll(this, oldValue, newValue)
```
### Parameters
- `this`: The string to search and replace.
- `oldValue`: The string to be replaced.
- `newValue`: The string to replace all occurrences of `oldValue`.
### Returns
A string that is equivalent to the current string except that all instances of `oldValue` are replaced with `newValue`.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/string.replace-all
```
## Source
https://repository.kingjs.net/string/replace-all
## License
MIT

![Analytics](https://analytics.kingjs.net/string/replace-all)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/string
[ns1]: https://www.npmjs.com/package/@kingjs/string.replace-all
npm package: @kingjs/symbol
Description: ```js var copy = require('@kingjs/xxx'); ``` result: ```js ``` ## API ```ts declare function xxx( ): any ``` ### Parameters ### Returns ## Remarks ## Install With [npm](https://npmjs.org/) installed, run ``` $ npm install @kingjs/xxx ```
Latest version: 1.0.1

# @[kingjs](https://www.npmjs.com/package/kingjs)/xxx
## Usage
```js
var copy = require('@kingjs/xxx');
```
result:
```js
```
## API
```ts
declare function xxx(
): any
```
### Parameters
### Returns
## Remarks
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/xxx
```
## License
MIT

![Analytics](https://analytics.kingjs.net/xxx)
npm package: @kingjs/tokenizer
Description: Splits a string into tokens.
Author: Chris King
Latest version: 1.0.2

# @kingjs/tokenizer

Generates arrays of odometer digits.

## Usage

A typical car odometer has 7 wheels, each wheel has 10 digits, and a new value is generated as the car moves along. These values can be generated like this:

```js
var Odometer = require('@kingjs/odometer')

var odometer = new Odometer(10, 10, 10, 10, 10, 10, 10);

var enumerator = odometer.getEnumerator();

var actual = [];
for (var distance = 0; distance < 11; distance++) { // 11 is arbitrary
  generator.moveNext();
  var current = generator.current;
  actual.push(current.reverse());
}

actual;
```

outputs:

```js
[
  [0, 0, 0, 0, 0, 0, 0],
  [0, 0, 0, 0, 0, 0, 1],
  [0, 0, 0, 0, 0, 0, 2],
  [0, 0, 0, 0, 0, 0, 3],
  [0, 0, 0, 0, 0, 0, 4],
  [0, 0, 0, 0, 0, 0, 5],
  [0, 0, 0, 0, 0, 0, 6],
  [0, 0, 0, 0, 0, 0, 7],
  [0, 0, 0, 0, 0, 0, 8],
  [0, 0, 0, 0, 0, 0, 9],
  [0, 0, 0, 0, 0, 1, 0],
];
```

## API

```ts
function odometer(bases?: number[]): {
  getEnumerator: {
    (): {
      moveNext: { (): Boolean },
      current: number[]
    }
  }
}
```
### Parameters
> `bases`: an array of normal numbers (or as an argument list) specifying the number of "digits" on each wheel of the odometer at each position.

### Return Value
> A generator of arrays containing the digits produced by an odometer of the specified number of digits and bases. The generator terminates after every combination has been generated.

## Remarks
A typical odometer increments digits from right to left. This odometer increments from left to right (which is why the example calls `Array.reverse()`). This is done so digits increment starting at index 0.

## Install
With [npm](https://npmjs.org/) installed, run

```
$ npm install @kingjs/odometer
```

## Acknowledgments
`fromEach` was inspired by nUnit `ValuesAttribute` and `TheoryAttribute` which use an odometer to generate combinations of test values from a set of arrays.

## See Also
- [`nunit.org`](http://nunit.org/)
- [`typescriptlang.org`](https://www.typescriptlang.org/)

## License

MIT
npm package: @kingjs/tools.create-dependencies-js
Description: Generates dependencies.js which exports the dependencies in package.json.
Latest version: 1.0.2
Deprecated: See @kingjs/create-depjs

# @[kingjs][@kingjs]/[tools][ns0].[create-dependencies-js][ns1]
Generates dependencies.js which exports the dependencies in package.json.
## Usage
Given a `package.json` like this:
```js
{
  "name": "@kingjs/tools.create-dependencies-js",
  "version": "1.0.0",
  "dependencies": {
    "@kingjs/camel-case.join": "^1.0.0",
    "@kingjs/package-name.parse": "^1.0.1"
  }
}

```
Running this:
```
$ cdj 
```
Produces a `dependencies.js` like this:
```js
exports['@kingjs'] = {
  camelCase: {
    join: require('@kingjs/camel-case.join'),
  },
  packageName: {
    parse: require('@kingjs/package-name.parse'),
  },
}
``` 
## Remarks
Using `dependencies.js` ensures that production code requires only packages listed in as dependencies in `package.json`.
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install -g @kingjs/tools.create-dependencies-js
```
## License
MIT

![Analytics](https://analytics.kingjs.net/tools/create-dependencies-js)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/tools
[ns1]: https://www.npmjs.com/package/@kingjs/tools.create-dependencies-js
npm package: @kingjs/watch-package
Description: A tool which, for each `package.json` found in any subdirectory, excluding dot directories, runs  `npm run generate`  in the subdirectory whenever a change  is made to any file explicitly included in the package.
Latest version: 1.0.0

# @[kingjs][@kingjs]/[watch-package][ns0]
A tool which, for each `package.json` found in any subdirectory, excluding dot directories, runs  `npm run generate`  in the subdirectory whenever a change  is made to any file explicitly included in the package.

## API
```ts
watchPackages()
```


### Remarks
- This tool was developed to automate manual tasks  that updated and/or generated files from source code. For example, updating `package.json` description and/or generating `README.md` from JsDoc comments found in source.
- Various heuristics are used to attempt to only kick off runs in response to manual interactions:
  - After a change is detected, a timer starts. If 100ms elapses without another change then `npm run generate` is executed in the `package.json` directory. If another change is detected with that 100ms, then the timer restarts. This should batch changes made by Save All or Replace All.
  - Watching is suspended while `npm run generate` is executing. This way changes made by the run itself do not generate subsequent runs.
- The watched files are those specified in `files` in the `package.json`. If `files` is specified, then no files  are watched for that package.

## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/watch-package
```
## Dependencies
|Package|Version|
|---|---|
|[`shelljs`](https://www.npmjs.com/package/shelljs)|`^1.0.0`|
|[`chokidar`](https://www.npmjs.com/package/chokidar)|`^2.1.1`|
## Source
https://repository.kingjs.net/watch-package
## License
MIT

![Analytics](https://analytics.kingjs.net/watch-package)

[@kingjs]: https://www.npmjs.com/package/kingjs
[ns0]: https://www.npmjs.com/package/@kingjs/watch-package
npm package: @kingjs/xxx
Description: ```js var assert = require('assert'); var xxx = require('@kingjs/xxx'); ``` ## API ```ts declare function xxx( ): any ``` ### Parameters ### Returns ## Remarks ## Install With [npm](https://npmjs.org/) installed, run ``` $ npm install @kingjs/xxx ``` ## L
Latest version: 1.0.0
Deprecated: n/a

# @[kingjs](https://www.npmjs.com/package/kingjs)/xxx
## Usage
```js
var assert = require('assert');
var xxx = require('@kingjs/xxx');
```
## API
```ts
declare function xxx(
): any
```
### Parameters
### Returns
## Remarks
## Install
With [npm](https://npmjs.org/) installed, run
```
$ npm install @kingjs/xxx
```
## License
MIT

![Analytics](https://analytics.kingjs.net/xxx)
npm package: @kingkongswap/sdk
Description: 🛠 An SDK for building applications on top of KingKong Swap.
Latest version: 0.8.0

# Uniswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/Uniswap/uniswap-sdk/workflows/CI/badge.svg)](https://github.com/Uniswap/uniswap-sdk)
[![npm version](https://img.shields.io/npm/v/@uniswap/sdk/latest.svg)](https://www.npmjs.com/package/@uniswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@uniswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@uniswap/sdk@latest)

In-depth documentation on this SDK is available at [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/Uniswap/uniswap-sdk.git
```

Move into the uniswap-sdk working directory

```sh
cd uniswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @kinglive/uikit
Description: Set of UI components for pancake projects
Latest version: 0.20.10

# BSCS UIkit

[![Version](https://img.shields.io/npm/v/@bscsswap/uikit)](https://www.npmjs.com/package/@bscsswap/uikit) [![Size](https://img.shields.io/bundlephobia/min/@bscsswap/uikit)](https://www.npmjs.com/package/@bscsswap/uikit)

BSCS UIkit is a set of React components and hooks used to build pages on BSCS apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @bscsswap/uikit`

## Setup

### Theme

Before using BSCS UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@bscsswap/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@bscsswap/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://github.com/bscsswap/bscsswap-uikit)
npm package: @kingmadellc/hardware-pm-mcp
Description: MCP server for Hardware Product Manager — competitive analysis, deep dives, and PRD generation for gaming peripherals, consumer audio, and mobile/tablets. Pays per-call via x402 micropayments (USDC on Base).
Author: KingMade LLC
Latest version: 1.0.0

# Hardware Product Manager — MCP Server

Competitive analysis, market intelligence, and PRD generation for gaming peripherals, consumer audio, and mobile/tablets. Powered by 20 years of hardware PM expertise via the Hardware Product Manager API.

## Tools

| Tool | Price | Description |
|------|-------|-------------|
| `hardware_pm_analyze` | $0.02 | Quick competitive analysis for a product or category |
| `hardware_pm_deep_analysis` | $0.08 | Full landscape with feature gaps, pricing, and strategy |
| `hardware_pm_prd` | $0.12 | Generate opinionated PRD sections for hardware product ideas |
| `hardware_pm_info` | Free | Service information and pricing |

Payment: USDC on Base network via [x402 protocol](https://x402.org).

## Install

### npx (no install needed)

```bash
npx @kingmadellc/hardware-pm-mcp
```

### Claude Code

```bash
claude mcp add hardware-pm -- npx @kingmadellc/hardware-pm-mcp
```

### Cursor

Add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "hardware-pm": {
      "command": "npx",
      "args": ["@kingmadellc/hardware-pm-mcp"]
    }
  }
}
```

### Windsurf

Add to `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "hardware-pm": {
      "command": "npx",
      "args": ["@kingmadellc/hardware-pm-mcp"]
    }
  }
}
```

## About

Built by KingMade LLC. API: https://hardware-pm-analyst.vercel.app
npm package: @kingmadellc/prediction-market-mcp
Description: MCP server for Prediction Market Analyst — probability estimation, Kelly sizing, signal detection, and full ensemble analysis for prediction markets. Pays per-call via x402 micropayments (USDC on Base).
Author: KingMade LLC
Latest version: 1.0.1

# prediction-market-mcp

MCP server for prediction market analysis. Probability estimation, Kelly sizing, signal detection, market filtering. Pays per-call via x402 (USDC on Base).

## Install

```bash
npm install -g @kingmadellc/prediction-market-mcp
```

## Add to Claude Code

```bash
claude mcp add prediction-market -- npx @kingmadellc/prediction-market-mcp
```

## Tools

| Tool | What it does | Price |
|------|--------------|-------|
| `prediction_market_estimate` | Kalshalyst probability estimate | $0.05 |
| `prediction_market_size` | Kelly-optimal position sizing (2.6x P&L lift) | $0.08 |
| `prediction_market_scan` | Rank markets by tradeable edge | $0.10 |
| `prediction_market_ensemble` | Full stack: estimate + Xpulse + ensemble + Kelly | $0.15 |
| `prediction_market_info` | Service info, endpoints, pricing | Free |

## Performance

- **Kalshalyst trading score**: 0.891 on 100+ resolved markets
- **Xpulse composite score**: 0.9146
- **Edge accuracy**: 90.2%
- **Kelly 2.6x P&L lift** vs defaults

## Wallet

All payments: `0xEbFc61b8b5D2BFaD8938B80cC131d3fA7C6fdd24` (Base network, USDC)

## API

https://prediction-market-analyst.vercel.app

## License

MIT

Powered by [prediction-market-analyst.vercel.app](https://prediction-market-analyst.vercel.app)
npm package: @kingmalitha/react-app
Description: CLI tool for scaffolding an opinionated prebuilt fully type-safe React-TS project
Author: Malitha Sandaruwan
Latest version: 0.0.1

# REACT-TS-APP

This is a simple opinionated React app with pre-configured tools and libraries. It includes popular tools and libraries to make the development process easier, faster and type-safe.

## Tools and Libraries

- [React](https://reactjs.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [Tailwind CSS](https://tailwindcss.com/)
- [ESLint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- [Husky](https://typicode.github.io/husky/)
- [Tanstack Query](https://tanstack.com/query/latest)
- [Tanstack Router](https://tanstack.com/router/latest)

## Why you should use this template?

- This saves you time by providing a pre-configured environment.
- It includes popular tools and libraries to make the development process easier, faster and type-safe.

## What are planned features?

- [ ] Add simple authentication page.
- [ ] Add simple user profile page.

## How to use?

1. Run the following command to create a new project using this template:

   ```bash
   npx @kingmalitha/react-app
   ```

2. Answer the questions and it will create a new project using this template.