![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Minimal Code Frame like babel-code-frame, but smaller
npm install --save code-frame
const framer = require('code-frame')
// framer('...', OffendingLine, OffendingColumn, {
// frameSize: 3,
// tabSize: 2
// })
// Opts:
// 'frameSize': (default: 3)
// This is calcuation is Line - Surrounding.
// If you provide, 3, it will capture a total of two surrounding lines.
// 2 | function (foo) {
// > 3 | console.log(foo
// | ^
//
// The frame is formed from bottom to top. ex: 4 = ((3 - 1) / 2) gives us 1
// line on top and bottom. If you provide an even number, 4, you'd result in
// 2 lines above and one below.
// 2 | var bar = function (foo) {
// > 3 | console.log(foo
// | ^
// 4 | foo = foo ? foo : 'baz'
//
// Inorder to get the opposite result you'd inverse the frameSize, -4
// 1 | // function bar
// 2 | var bar = function (foo) {
// > 3 | console.log(foo
// | ^
//
// Caveats:
// frame cuts off if the wrapping lines hit EOF/Start of File. If the
// frameSize is 3 and the error is on line 1:
// > 1 | 'use strict;
// | ^
//
// 'tabSize': (default: 2)
// If mixed tabs are found on anylines while constructing the frame, we
// convert them over to spaces. You may define a positive integer.
MIT © Henry Snopek
FAQs
Minimal Code Frame like babel-code-frame, but smaller
We found that code-frame 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.