This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

datocms-plugin-nanoid

0.2.1 • Public • Published

Nano ID DatoCMS Plugin

Created by November Five

Plugin that adds nanoid's to any field automatically. This allows to have unique references to a model across migrations. The editor doesn't have to do anything as the uuid field is hidden and automatically filled in with a random nanoid using the nanoid.

Configuration

After installing the plugin, you'll need to configure the plugin settings:

Configuration screenshot

You can specify the api_key of the field that will be automatically converted to a hidden "nanoid" field. A good name is nanoid, then add a single line string field to a model and call it nanoid.

The hide field option by default is turned on, if you turn it off the field is displayed and you can regenerate the id.

Field

Development

If you want to develop on this extension, the quickest way is to run yarn start and manually install it by going to Settings > Plugins, clicking the add button, and clicking "create a private one" in the lower right. Give it:

  • A name of your choosing
  • An entry point URL of http://localhost:3000

Readme

Keywords

Package Sidebar

Install

npm i datocms-plugin-nanoid

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

1.04 MB

Total Files

24

Last publish

Collaborators

  • danfritz