
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@alisowski/codemirror-extensions-line-numbers-relative
Advanced tools
Relative line numbers Extensions for CodeMirror6.
Relative line numbers Extensions for CodeMirror6.
npm install @uiw/codemirror-extensions-line-numbers-relative --save
import CodeMirror from '@uiw/react-codemirror';
import { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';
function App() {
return <CodeMirror value="console.log('hello world!');" height="200px" extensions={[lineNumbersRelative]} />;
}
export default App;
import { EditorView } from '@codemirror/view';
import { EditorState } from '@codemirror/state';
import { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';
const state = EditorState.create({
doc: 'my source code',
extensions: [lineNumbersRelative],
});
const view = new EditorView({
parent: document.querySelector('#editor'),
state,
});
As always, thanks to our amazing contributors!
Made with github-action-contributors.
Licensed under the MIT License.
FAQs
Relative line numbers Extensions for CodeMirror6.
We found that @alisowski/codemirror-extensions-line-numbers-relative demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.