{"id":20699730,"url":"https://github.com/napi-rs/fast-escape","last_synced_at":"2025-06-15T17:07:20.919Z","repository":{"id":42198070,"uuid":"293796649","full_name":"napi-rs/fast-escape","owner":"napi-rs","description":"Faster html escape","archived":false,"fork":false,"pushed_at":"2025-06-09T11:45:43.000Z","size":8573,"stargazers_count":26,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-09T12:42:34.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/napi-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["Brooooooklyn"]}},"created_at":"2020-09-08T11:59:49.000Z","updated_at":"2025-06-09T11:45:47.000Z","dependencies_parsed_at":"2024-05-02T19:01:22.982Z","dependency_job_id":"869e3b83-45b1-4a93-a7bb-4eeb2c44d231","html_url":"https://github.com/napi-rs/fast-escape","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/napi-rs/fast-escape","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Ffast-escape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Ffast-escape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Ffast-escape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Ffast-escape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/napi-rs","download_url":"https://codeload.github.com/napi-rs/fast-escape/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Ffast-escape/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260015808,"owners_count":22946316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-17T00:31:41.648Z","updated_at":"2025-06-15T17:07:20.894Z","avatar_url":"https://github.com/napi-rs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Brooooooklyn"],"categories":[],"sub_categories":[],"readme":"# `@napi-rs/fast-escape`\n\n![actions](https://github.com/napi-rs/fast-escape/workflows/CI/badge.svg)\n\n## Install this package\n\n```\nyarn add @napi-rs/fast-escape\n```\n\n## Performance\n\n```\nModel Name: MacBook Pro\nModel Identifier: MacBookPro15,1\nProcessor Name: 6-Core Intel Core i9\nProcessor Speed: 2.9 GHz\nNumber of Processors: 1\nTotal Number of Cores: 6\nL2 Cache (per Core): 256 KB\nL3 Cache: 12 MB\nHyper-Threading Technology: Enabled\nMemory: 32 GB\n```\n\n```js\nnapi x 799 ops/sec ±0.38% (93 runs sampled)\nnapi#buff x 980 ops/sec ±1.39% (92 runs sampled)\nnapi#asyncBuff x 805 ops/sec ±1.33% (75 runs sampled)\njavascript x 586 ops/sec ±1.40% (81 runs sampled)\nEscape html benchmark # Large input bench suite: Fastest is napi#buff\nnapi x 2,158,169 ops/sec ±0.59% (93 runs sampled)\nnapi#buff x 2,990,077 ops/sec ±0.73% (93 runs sampled)\nnapi#asyncBuff x 66,540 ops/sec ±3.02% (77 runs sampled)\njavascript x 1,951,484 ops/sec ±0.31% (92 runs sampled)\nEscape html benchmark # Small input bench suite: Fastest is napi#buff\n```\n\n## Develop requirements\n\n- Install latest `Rust`\n- Install `NodeJS@10+` which supports `N-API`\n- Install `yarn@1.x`\n\n## Test in local\n\n- `yarn`\n- `yarn build`\n- `yarn test`\n\nAnd you will see:\n\n```bash\n$ ava --verbose\n\n  ✔ escape html\n  ─\n\n  1 test passed\n✨  Done in 1.47s.\n```\n\n## Release package\n\nEnsure you have set you **NPM_TOKEN** in `Github` project setting.\n\nIn `Settings -\u003e Secrets`, add **NPM_TOKEN** into it.\n\nWhen you want release package:\n\n```\nyarn version [xxx]\n\ngit push --follow-tags\n```\n\nGithub actions will do the rest job for you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnapi-rs%2Ffast-escape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnapi-rs%2Ffast-escape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnapi-rs%2Ffast-escape/lists"}