| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Note
Prerequisites: For Deno (install from deno.com). For npm use Node.js (e.g. nodejs.org).
Deno (JSR):
deno add jsr:@neabyte/textshiftnpm:
npm install @neabyte/textshiftCDN (jsDelivr/unpkg/esm.sh):
<script type="module">
import {
TextTransform,
JsonFormatter
} from 'https://cdn.jsdelivr.net/npm/@neabyte/textshift/dist/index.mjs'
</script>Or via esm.sh:
<script type="module">
import {
TextTransform,
JsonFormatter
} from 'https://esm.sh/@neabyte/textshift'
</script>Or via importmap:
<script type="importmap">
{
"imports": {
"@neabyte/textshift": "https://cdn.jsdelivr.net/npm/@neabyte/textshift/dist/index.mjs"
}
}
</script>
<script type="module">
import { TextTransform, JsonFormatter } from '@neabyte/textshift'
</script>Read docs/README.md for full documentation.
import { TextTransform, JsonFormatter } from '@neabyte/textshift'
const result = TextTransform.capitalizedCase('hello world')
console.log(result.data) // 'Hello World'
const json = JsonFormatter.beautify('{"b":2,"a":1}')
console.log(json.data)
// {
// "b": 2,
// "a": 1
// }npm build (bundles to dist/):
npm run buildType check - format, lint, and type-check:
deno task checkUnit tests - format/lint tests and run all tests:
deno task testThis project is licensed under the MIT license. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |