
Security News
TypeScript 6.0 Released: The Final JavaScript-Based Version
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.
@gmb/bitmark-breakscape
Advanced tools
A library for processing and parsing bitmark content with breakscape functionality
Breakscaping for bitmark text.
The Bitmark Parser Generator is used to parse and generate bitmark markup. When it is being used directly, there is no need to use this library, as breakscaping will happen automatically.
However, if you are manually building bitmark markup with code, then this is the library for you. Use it to breakscape the bitmark text before adding it to the bitmark.
npm install @gmb/bitmark-breakscape
import { Breakscape, TextFormat, TextLocation } from '@gmb/bitmark-breakscape';
//
// Example usage
//
/* Default usage (for text to be inserted in the body of a bit) */
const res = Breakscape.breakscape('This is about an [.article]');
// res = 'This is about an [^.article]'
/* With options usage (for text to be inserted in a tag and / or plain text) */
/* In this case, plain text destined for a tag like [! instruction ] */
const res = Breakscape.breakscape('This is about an [.article]', {
format: TextFormat.text,
location: TextLocation.tag
});
// res = 'This is about an [.article^]'
/* The input can be an array of texts to process */
/* In this case, inPlaceArray can be used to modify the array in place, or return a new array,
/* the default is to return a new array */
const res = Breakscape.breakscape(['This is about an [.article]', 'Not __italic__ text'], {
inPlaceArray: true
});
// res = ['This is about an [^.article]', 'Not _^_italic_^_ text']
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Run in development mode with watch
npm run dev
npm run build - Build the project for productionnpm run dev - Build and watch for changesnpm test - Run testsnpm run test:ci - Run tests in CI modenpm run lint - Lint the codenpm run lint:fix - Lint and fix issuesnpm run format - Format code with Prettiernpm run format:check - Check code formattingnpm run typecheck - Run TypeScript type checkingThis project version follows the version of the Bitmark Parser Generator
You should use the version that matches or is closest behind the version of the Bitmark Parser Generator that you are using.
For example, imagine the following Breakscape versions exist:
Then the following Breakscape versions should be used:
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the ISC License - see the LICENSE file for details.
Get More Brain Ltd
FAQs
A library for processing and parsing bitmark content with breakscape functionality
The npm package @gmb/bitmark-breakscape receives a total of 1 weekly downloads. As such, @gmb/bitmark-breakscape popularity was classified as not popular.
We found that @gmb/bitmark-breakscape demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.

Security News
/Research
Newly published Trivy Docker images (0.69.4, 0.69.5, and 0.69.6) were found to contain infostealer IOCs and were pushed to Docker Hub without corresponding GitHub releases.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.