Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
extra-javascript-text.web
Advanced tools
Readme
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.
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();
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. |
FAQs
Utilities for processing JavaScript text{web}.
The npm package extra-javascript-text.web receives a total of 23 weekly downloads. As such, extra-javascript-text.web popularity was classified as not popular.
We found that extra-javascript-text.web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.