{"id":42928652,"url":"https://github.com/brannonh/value-sculptor","last_synced_at":"2026-01-30T18:35:08.971Z","repository":{"id":42936932,"uuid":"227470055","full_name":"brannonh/value-sculptor","owner":"brannonh","description":"Library for generating pseudo-random dummy values","archived":false,"fork":false,"pushed_at":"2023-03-04T05:47:45.000Z","size":1149,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T21:59:01.602Z","etag":null,"topics":["content","create","data","demo","dummy","example","generate","generator","make","model","pattern","propagate","pseudo-random","random","sample","spawn","test","typescript","utility","value"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brannonh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-11T22:11:36.000Z","updated_at":"2021-10-04T18:43:07.000Z","dependencies_parsed_at":"2023-02-05T03:16:51.010Z","dependency_job_id":null,"html_url":"https://github.com/brannonh/value-sculptor","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/brannonh/value-sculptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brannonh%2Fvalue-sculptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brannonh%2Fvalue-sculptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brannonh%2Fvalue-sculptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brannonh%2Fvalue-sculptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brannonh","download_url":"https://codeload.github.com/brannonh/value-sculptor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brannonh%2Fvalue-sculptor/sbom","scorecard":{"id":251416,"data":{"date":"2025-08-11","repo":{"name":"github.com/brannonh/value-sculptor","commit":"4e6c035a1895a2a419ddfebf5d812e4c2d41680e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/brannonh/value-sculptor/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/brannonh/value-sculptor/node.js.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T08:33:13.322Z","repository_id":42936932,"created_at":"2025-08-17T08:33:13.322Z","updated_at":"2025-08-17T08:33:13.322Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T16:37:38.804Z","status":"ssl_error","status_checked_at":"2026-01-30T16:37:37.878Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["content","create","data","demo","dummy","example","generate","generator","make","model","pattern","propagate","pseudo-random","random","sample","spawn","test","typescript","utility","value"],"created_at":"2026-01-30T18:35:08.226Z","updated_at":"2026-01-30T18:35:08.949Z","avatar_url":"https://github.com/brannonh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# value-sculptor\n\nValue Sculptor is a library for generating pseudo-random values that can be used for various purposes (e.g., as example data, for testing purposes, etc.). It is not meant to generate realistic content data (for that I recommend [faker.js](https://github.com/Marak/Faker.js#readme)), but rather values that follow a known pattern.\n\nIt is written in TypeScript and includes type definitions.\n\n## Status\n\n[![Node.js CI](https://github.com/brannonh/value-sculptor/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/brannonh/value-sculptor/actions/workflows/node.js.yml)\n\n**value-sculptor should be considered under development.** All minor versions prior to 1.0.0 introduce breaking changes. Every effort will be made to ensure that documentation is accurate for each release.\n\n## Installation\n\n```shell\nnpm i value-sculptor\n```\n\n## Importing\n\nTo use, simply import (or require) from `value-sculptor`. You may also want to import (or require) `GeneratorType`, `CharacterSets`, and/or `PadType` to make creating the `options` object easier.\n\n```typescript\nimport { sculpt, GeneratorType, PadType, CharacterSets } from 'value-sculptor';\n```\n\n```javascript\nvar { sculpt, GeneratorType, PadType, CharacterSets } = require('value-sculptor');\n```\n\n## Types\n\nThe following types may make code easier to write and understand.\n\n### GeneratorType\n\n| Value     | Description                                 |\n| ---       | ---                                         |\n| `Number`  | Generate a random number.                   |\n| `Select`  | Choose a random value from a list.          |\n| `String`  | Create a string following a given pattern.  |\n\n### CharacterSets\n\n| Value                      | Possible Characters                                   |\n| ---                        | ---                                                   |\n| `Alpha`                    | `a-z`, `A-Z`                                          |\n| `AlphaLower`               | `a-z`                                                 |\n| `AlphaLowerNumeric`        | `a-z`, `0-9`                                          |\n| `AlphaLowerNumericSymbol`  | `a-z`, `0-9`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`          |\n| `AlphaLowerSymbol`         | `a-z`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`                 |\n| `AlphaNumeric`             | `a-z`, `A-Z`, `0-9`                                   |\n| `AlphaNumericSymbol`       | `a-z`, `A-Z`, `0-9`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`   |\n| `AlphaSymbol`              | `a-z`, `A-Z`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`          |\n| `AlphaUpper`               | `A-Z`                                                 |\n| `AlphaUpperNumeric`        | `A-Z`, `0-9`                                          |\n| `AlphaUpperNumericSymbol`  | `A-Z`, `0-9`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`          |\n| `AlphaUpperSymbol`         | `A-Z`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`                 |\n| `Binary`                   | `0-1`                                                 |\n| `HexLower`                 | `0-9`, `a-f`                                          |\n| `HexUpper`                 | `0-9`, `A-F`                                          |\n| `Numeric`                  | `0-9`                                                 |\n| `NumericSymbol`            | `0-9`, `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`                 |\n| `Octal`                    | `0-7`                                                 |\n| `Symbol`                   | `~!@#$%^\u0026*-_=+{[()]}\\|:;,\u003c\u003e.?`                        |\n\n### PadType\n\n| Value   | Description                       |\n| ---     | ---                               |\n| `Both`  | Pad both sides of the string.     |\n| `Left`  | Pad the left side of the string.  |\n| `Right` | Pad the right side of the string. |\n\n## Usage\n\nExamples are in TypeScript.\n\n```typescript\nfunction sculpt(options: SculptOptions | SculptOptions[], concat: boolean = false, delimiter: string = '')\n```\n\nJust call the `sculpt` function with your desired options.\n\n```typescript\n// value will be a random number between 0 and 100 (inclusive).\n//    example: 42\nconst value = sculpt({ type: GeneratorType.Number, max: 100 });\n\n// value will be an array of two random numbers\n//    the first will be between 0 and 100 (inclusive).\n//    the second will be between 50 and 200 (inclusive).\n//    example: [ 42, 123 ]\nconst value = sculpt([\n  { type: GeneratorType.Number, max: 100 },\n  { type: GeneratorType.Number, min: 50, max: 200 }\n]);\n\n// value will be a string of numeric characters, left-padded to 15 characters with zeros\n//    example: 000000000012345\nconst value = sculpt({\n  type: GeneratorType.String,\n  charSet: CharacterSets.Numeric,\n  length: 5,\n  padType: PadType.Left,\n  padLengthLeft: 15,\n  padCharLeft: '0'\n});\n\n// value will be a string of random characters in the following pattern:\n//    five lowercase characters, three numbers, five uppercase characters\n//    example: abcde123ABCDE\nconst value = sculpt([\n  { type: GeneratorType.String, charSet: CharacterSets.AlphaLower, length: 5 },\n  { type: GeneratorType.String, charSet: CharacterSets.Numeric, length: 3 },\n  { type: GeneratorType.String, charSet: CharacterSets.AlphaUpper, length: 5 }\n], true);\n\n// value will be three strings of random characters in the following pattern, delimited by periods:\n//    five lowercase characters, three numbers, five uppercase characters\n//    example: abcde.123.ABCDE\nconst value = sculpt([\n  { type: GeneratorType.String, charSet: CharacterSets.AlphaLower, length: 5 },\n  { type: GeneratorType.String, charSet: CharacterSets.Numeric, length: 3 },\n  { type: GeneratorType.String, charSet: CharacterSets.AlphaUpper, length: 5 }\n], true, '.');\n\n// value will be a random string of 10 As and Bs\n//    example: ABAAABABBA\nconst value = sculpt({\n  type: GeneratorType.String,\n  length: 10,\n  charSet: 'AB'\n});\n```\n\n### Arguments\n\n#### options\n\nThe `options` argument is a `SculptOptions` object (or array of `SculptOptions` objects) that may contain the following key-value pairs. If `options` is an array, a separate value will be generated for each object in the array.\n\n| Key             | Type            | GeneratorType | Required            | Default | Description                                                                                                         |\n| ---             | ---             | ---           | :--:                | ---     | ---                                                                                                                 |\n| charSet         | `string`        | `String`      |                     |         | A string of possible characters                                                                                     |\n| length          | `integer`       | `String`      | :heavy_check_mark:  |         | The length of the string                                                                                            |\n| max             | `integer`       | `Number`      | :heavy_check_mark:  |         | The maximum value to generate (inclusive)                                                                           |\n| min             | `integer`       | `Number`      |                     | `0`     | The minimum value to generate (inclusive)                                                                           |\n| padCharLeft     | `string`        | `String`      |                     | space   | The character to use for padding on the left, omit for spaces                                                       |\n| padCharRight    | `string`        | `String`      |                     | space   | The character to use for padding on the right, omit for spaces                                                      |\n| padLengthLeft   | `integer`       | `String`      |                     |         | The length of the string after padding on the left, **required** if `padType` is `PadType.Both` or `PadType.Left`   |\n| padLengthRight  | `integer`       | `String`      |                     |         | The length of the string after padding on the right, **required** if `padType` is `PadType.Both` or `PadType.Right` |\n| padPriority     | `PadType`       | `String`      |                     |         | The side of the string to pad first, **required** if `padType` is `PadType.Both`                                    |\n| padType         | `PadType`       | `String`      |                     |         | The type of padding to use (see [PadType](#PadType)), omit for no padding                                           |\n| possibles       | `string[]`      | `Select`      | :heavy_check_mark:  |         | An array of possible strings from which to choose one                                                               |\n| type            | `GeneratorType` |               | :heavy_check_mark:  |         | The type of value to create (see [GeneratorType](#GeneratorType))                                                   |\n\n#### concat\n\nThe `concat` argument is an optional `boolean` value. If `false` (default), an array of generated values is returned. If `true`, all of the generated values are concatenated together and returned as a single string.\n\n#### delimiter\n\nThe `delimiter` argument is an optional `string` value. It defaults to an empty string (`''`) and will be used to separate values when `concat` is `true`.\n\n## Contributing\n\nSee our [guidelines for contributing](https://github.com/brannonh/value-sculptor/blob/master/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrannonh%2Fvalue-sculptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrannonh%2Fvalue-sculptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrannonh%2Fvalue-sculptor/lists"}