Skip to content

Commit

Permalink
fix(README): Update modifier api in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnext committed Nov 20, 2023
1 parent fa378b4 commit d35074d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ or your own modifiers...
import { rubiks } from "rubiks";

function customModifier(self) {
return `my content: ${self.format}, and the current level is ${self.level}`
self.format = `my content: ${self.format}, and the current level is ${self.level}`

return null
}

rubiks()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "rubiks",
"version": "0.8.0",
"version": "0.8.1",
"type": "module",
"description": "Rubiks is a 0 dependency extendable logging library for modern applications.",
"main": "./lib/index.js",
Expand Down

0 comments on commit d35074d

Please sign in to comment.