extra-javascript-text
Utilities for processing JavaScript text.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.0%) to scientific vocabulary
Keywords
Repository
Utilities for processing JavaScript text.
Basic Info
- Host: GitHub
- Owner: nodef
- License: mit
- Language: TypeScript
- Default Branch: main
- Homepage: https://www.npmjs.com/package/extra-javascript-text
- Size: 85 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Utilities for processing JavaScript text.
📦 Node.js,
🌐 Web,
📜 Files,
📰 Docs.
This package is available in Node.js and Web formats. To use it on the web,
simply use the extra_javascript_text global variable after loading with a <script>
tag from the jsDelivr CDN.
Stability: Experimental.
```javascript const fs = require('fs'); const xjavascript = require('extra-javascript-text');
function main() { var txt = fs.readFileSync('src/index.ts', 'utf8').replace(/\r?\n/, '\n');
xjavascript.importSymbols(txt); // []
xjavascript.exportSymbols(txt); // [ // { // full: 'export function tagStrings', // name: 'tagStrings', // kind: 'function', // isDefault: false // }, // { // full: 'export function untagStrings', // name: 'untagStrings', // kind: 'function', // isDefault: false // }, // ... // ]
xjavascript.jsdocSymbols(txt); // [ // { // full: '/\r\n' + // ' * Get index of string end.\r\n' + // ' * @param txt javascript text\r\n' + // ' * @param i index of string begin\r\n' + // ' */\r\n' + // ' function indexOfClosingString', // jsdoc: '/\r\n' + // ' * Get index of string end.\r\n' + // ' * @param txt javascript text\r\n' + // ' * @param i index of string begin\r\n' + // ' /', // name: 'indexOfClosingString', // kind: 'function', // isExported: false, // isDefault: false // }, // { // full: '/\r\n' + // ' * Tag strings in javascript text and remove them.\r\n' + // ' * @param txt javascript text\r\n' + // ' * @returns [updated javascript text, tags]\r\n' + // ' */\r\n' + // 'export function tagStrings', // jsdoc: '/*\r\n' + // ' * Tag strings in javascript text and remove them.\r\n' + // ' * @param txt javascript text\r\n' + // ' * @returns [updated javascript text, tags]\r\n' + // ' */', // name: 'tagStrings', // kind: 'function', // isExported: true, // isDefault: false // }, // ... // ] } main(); ```
Index
| Property | Description | | ---- | ---- | | tagStrings | Tag strings in javascript text and remove them. | | untagStrings | Untag strings in javascript text by adding them back. | | forEachComment | Match links in javascript text. | | comments | Get comments in javascript text. | | replaceComments | Replace comments in javascript text. | | tagComments | Tag comments in javascript text and remove them. | | untagComments | Untag comments in javascript text by adding them back. | | uncomment | Remove comments from javascript text. | | forEachJsdocSymbol | Match jsdoc symbols in javascript text. | | jsdocSymbols | Get jsdoc symbols in javascript text. | | replaceJsdocSymbols | Replace jsdoc symbols in javascript text. | | forEachExportSymbol | Match export symbols in javascript text. | | exportSymbols | Get export symbols in javascript text. | | replaceExportSymbols | Replace export symbols in javascript text. | | forEachImportSymbol | Match import symbols in javascript text. | | importSymbols | Get import symbols in javascript text. | | replaceImportSymbols | Replace import symbols in javascript text. | | correctDeclarations | Correct type declarations after generation. |
Owner
- Name: nodef
- Login: nodef
- Kind: organization
- Website: https://nodef.github.io/
- Repositories: 119
- Profile: https://github.com/nodef
A summary of programs made with Node.js.
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Sahu
given-names: Subhajit
orcid: https://orcid.org/0000-0001-5140-6578
title: "nodef/extra-javascript-text: Utilities for processing JavaScript text"
version: 0.1.10
doi: 10.5281/zenodo.6944479
date-released: 2022-07-31
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: almost 3 years ago
All Time
- Total Commits: 12
- Total Committers: 1
- Avg Commits per committer: 12.0
- Development Distribution Score (DDS): 0.0
Top Committers
| Name | Commits | |
|---|---|---|
| Subhajit Sahu | w****7@g****m | 12 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- npm 89 last-month
-
Total dependent packages: 3
(may contain duplicates) -
Total dependent repositories: 15
(may contain duplicates) - Total versions: 47
- Total maintainers: 1
npmjs.org: extra-javascript-text
Utilities for processing JavaScript text.
- Homepage: https://github.com/nodef/extra-javascript-text#readme
- License: MIT
-
Latest release: 0.1.15
published 11 months ago
Rankings
Maintainers (1)
npmjs.org: extra-javascript-text.web
Utilities for processing JavaScript text{web}.
- Homepage: https://github.com/nodef/extra-javascript-text#readme
- License: MIT
-
Latest release: 0.1.15
published 11 months ago
Rankings
Maintainers (1)
Dependencies
- @babel/code-frame 7.16.7 development
- @babel/helper-validator-identifier 7.16.7 development
- @babel/highlight 7.16.10 development
- @octokit/auth-token 2.5.0 development
- @octokit/core 3.6.0 development
- @octokit/endpoint 6.0.12 development
- @octokit/graphql 4.8.0 development
- @octokit/openapi-types 11.2.0 development
- @octokit/plugin-paginate-rest 2.17.0 development
- @octokit/plugin-request-log 1.0.4 development
- @octokit/plugin-rest-endpoint-methods 5.13.0 development
- @octokit/request 5.6.3 development
- @octokit/request-error 2.1.0 development
- @octokit/rest 18.12.0 development
- @octokit/types 6.34.0 development
- @rollup/plugin-commonjs 21.0.3 development
- @rollup/plugin-node-resolve 13.1.3 development
- @rollup/pluginutils 3.1.0 development
- @types/estree 0.0.39 development
- @types/node 17.0.23 development
- @types/resolve 1.17.1 development
- ansi-styles 3.2.1 development
- balanced-match 1.0.2 development
- before-after-hook 2.2.2 development
- brace-expansion 1.1.11 development
- builtin-modules 3.2.0 development
- chalk 2.4.2 development
- color-convert 1.9.3 development
- color-name 1.1.3 development
- commondir 1.0.1 development
- concat-map 0.0.1 development
- deepmerge 4.2.2 development
- deprecation 2.3.1 development
- dot-prop 6.0.1 development
- escape-string-regexp 1.0.5 development
- estree-walker 1.0.1 development
- estree-walker 2.0.2 development
- estree-walker 0.6.1 development
- extra-build 2.0.29 development
- fs.realpath 1.0.0 development
- fsevents 2.3.2 development
- function-bind 1.1.1 development
- glob 7.2.0 development
- has 1.0.3 development
- has-flag 3.0.0 development
- inflight 1.0.6 development
- inherits 2.0.4 development
- is-core-module 2.8.1 development
- is-module 1.0.0 development
- is-obj 2.0.0 development
- is-plain-object 5.0.0 development
- is-reference 1.2.1 development
- js-cleanup 1.2.0 development
- js-tokens 4.0.0 development
- kleur 4.1.4 development
- lru-cache 6.0.0 development
- magic-string 0.25.9 development
- magic-string 0.26.1 development
- minimatch 3.1.2 development
- node-fetch 2.6.7 development
- once 1.4.0 development
- path-is-absolute 1.0.1 development
- path-parse 1.0.7 development
- perf-regexes 1.0.1 development
- picomatch 2.3.1 development
- resolve 1.22.0 development
- rollup 2.70.1 development
- rollup-plugin-cleanup 3.2.1 development
- rollup-plugin-dts 4.2.0 development
- rollup-pluginutils 2.8.2 development
- semver 7.3.5 development
- skip-regex 1.0.2 development
- sourcemap-codec 1.4.8 development
- supports-color 5.5.0 development
- supports-preserve-symlinks-flag 1.0.0 development
- tr46 0.0.3 development
- typescript 4.6.3 development
- universal-user-agent 6.0.0 development
- webidl-conversions 3.0.1 development
- whatwg-url 5.0.0 development
- wrappy 1.0.2 development
- yallist 4.0.0 development
- @rollup/plugin-commonjs ^21.0.3 development
- @rollup/plugin-node-resolve ^13.1.3 development
- @types/node ^17.0.23 development
- extra-build ^2.0.29 development
- rollup-plugin-cleanup ^3.2.1 development
- rollup-plugin-dts ^4.2.0 development
- actions/checkout v3 composite
- actions/setup-node v2 composite
- actions/checkout v3 composite
- actions/setup-node v2 composite
