2.1.1 • Published 3 years ago

@getneurotic/helper v2.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Neurotic Helper

This package will install the Neurotic helper functions for NextJS.

🚨 Before usage: Run Neurotic Installer first.

How to use

import {
	getCollection,
	getRecord,
	getProperty,
	getProperties
} from '@getneurotic/helper'

// Get all records within a content type
const pages = getCollection('page')

// Get a single record
const page = getRecord('34ergdsfghsdthsf')

// Get a single property value of a record by identifier
const title = getProperty('34ergdsfghsdthsf', 'title')

// Get a single property of a record
const title = getProperty(page, 'title')

// Get all property values of a record by identifier
const props = getProperties('34ergdsfghsdthsf')

// Get all property values of a record
const props = getProperties(page)

// Get specific property values of a record by identifier
const props = getProperties('34ergdsfghsdthsf', [
	'title',
	'meta_title',
])

// Get specific property values of a record
const props = getPropertyValues(page, [
	'title',
	'meta_title',
])
2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.8.7

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.8.4

3 years ago

1.8.2

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.8.3

3 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.6.4

3 years ago

1.7.2

3 years ago

1.6.3

3 years ago

1.5.4

3 years ago

1.7.1

3 years ago

1.6.2

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.31

3 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.61

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago